|
@@ -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 }}
|