Merge pull request #68 from C2SM/empa-full-chem #8
Workflow file for this run
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: Build and Deploy Documentation to Tags | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| deploy-docs-tag: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Get release | |
| id: get_release | |
| uses: bruceadams/get-release@v1.3.2 | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Build docs | |
| uses: C2SM/sphinx-action@sphinx-latest | |
| with: | |
| build-command: "sphinx-build -b html . _build" | |
| docs-folder: "docs/" | |
| - name: Deploy on GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/_build | |
| destination_dir: ${{ steps.get_release.outputs.tag_name }} | |
| allow_empty_commit: true |