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