mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix workflow
This commit is contained in:
parent
730b6ff249
commit
cc604524f1
34
.github/workflows/m2met2.yml
vendored
34
.github/workflows/m2met2.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
name: "M2MET2.0 Pages"
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev_lyh
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
docs:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- uses: ammaraskar/sphinx-action@master
|
|
||||||
with:
|
|
||||||
docs-folder: "docs_m2met2/"
|
|
||||||
pre-build-command: "pip install sphinx-markdown-tables nbsphinx jinja2 recommonmark sphinx_rtd_theme"
|
|
||||||
|
|
||||||
- name: deploy copy
|
|
||||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_lyh'
|
|
||||||
run: |
|
|
||||||
mkdir public
|
|
||||||
mkdir public/m2met2
|
|
||||||
touch public/m2met2/.nojekyll
|
|
||||||
cp -r docs_m2met2/_build/html/* public/m2met2/
|
|
||||||
|
|
||||||
- name: deploy github.io pages
|
|
||||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_lyh'
|
|
||||||
uses: peaceiris/actions-gh-pages@v2.3.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
PUBLISH_BRANCH: gh-pages
|
|
||||||
PUBLISH_DIR: public
|
|
||||||
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -6,6 +6,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev_wjm
|
- dev_wjm
|
||||||
|
- dev_lyh
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
@ -20,9 +21,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
docs-folder: "docs_cn/"
|
docs-folder: "docs_cn/"
|
||||||
pre-build-command: "pip install sphinx-markdown-tables nbsphinx jinja2 recommonmark sphinx_rtd_theme"
|
pre-build-command: "pip install sphinx-markdown-tables nbsphinx jinja2 recommonmark sphinx_rtd_theme"
|
||||||
|
- uses: ammaraskar/sphinx-action@master
|
||||||
|
with:
|
||||||
|
docs-folder: "docs_m2met2/"
|
||||||
|
pre-build-command: "pip install sphinx-markdown-tables nbsphinx jinja2 recommonmark sphinx_rtd_theme"
|
||||||
|
|
||||||
- name: deploy copy
|
- name: deploy copy
|
||||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_wjm'
|
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_wjm' || github.ref == 'refs/heads/dev_lyh'
|
||||||
run: |
|
run: |
|
||||||
mkdir public
|
mkdir public
|
||||||
touch public/.nojekyll
|
touch public/.nojekyll
|
||||||
@ -32,9 +37,12 @@ jobs:
|
|||||||
mkdir public/cn
|
mkdir public/cn
|
||||||
touch public/cn/.nojekyll
|
touch public/cn/.nojekyll
|
||||||
cp -r docs_cn/_build/html/* public/cn/
|
cp -r docs_cn/_build/html/* public/cn/
|
||||||
|
mkdir public/m2met2
|
||||||
|
touch public/m2met2/.nojekyll
|
||||||
|
cp -r docs_m2met2/_build/html/* public/m2met2/
|
||||||
|
|
||||||
- name: deploy github.io pages
|
- name: deploy github.io pages
|
||||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_wjm'
|
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev_wjm' || github.ref == 'refs/heads/dev_lyh'
|
||||||
uses: peaceiris/actions-gh-pages@v2.3.1
|
uses: peaceiris/actions-gh-pages@v2.3.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user