deploy website #1572
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: deploy website | |
| on: | |
| schedule: | |
| - cron: 0 0 * * * | |
| push: | |
| branches: [ source ] | |
| pull_request: | |
| branches: [ source ] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: Build | |
| run: | | |
| sudo python3 -m pip config set global.break-system-packages true | |
| sudo pip3 install sphinx recommonmark | |
| .ci/retrieve_readme.sh | |
| .ci/retrieve_wiki.sh | |
| sphinx-build src build | |
| - name: Deploy | |
| if: github.ref == 'refs/heads/source' | |
| uses: JamesIves/github-pages-deploy-action@3.7.1 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: build | |
| CLEAN: true |