upload github.io

This commit is contained in:
jmwang66 2023-02-08 17:35:06 +08:00
parent 6a41e13ba9
commit 86530b8f6a

View File

@ -20,14 +20,14 @@ jobs:
- name: deploy copy
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
run: |
mkdir public_cn
touch public_cn/.nojekyll
cp -r docs_cn/_build/html/* public_cn/
mkdir public
touch public/.nojekyll
cp -r docs_cn/_build/html/* public/
- name: deploy github.io pages
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
uses: peaceiris/actions-gh-pages@v2.3.1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
PUBLISH_BRANCH: gh-pages-cn
PUBLISH_DIR: public_cn
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: public