rebased with parent repo #10
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 Publish Docs | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| setup-container: | |
| uses: ./.github/workflows/container_setup.yaml | |
| build_docs: | |
| needs: setup-container | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ${{ needs.setup-container.outputs.container_image }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Quake | |
| run: | | |
| git config --global --add safe.directory '*' | |
| eval "$(conda shell.bash hook)" | |
| conda activate quake-env | |
| pip install --no-use-pep517 . | |
| - name: Build Sphinx Documentation | |
| working-directory: docs | |
| run: | | |
| conda run -n quake-env sphinx-build -b html . _build/html | |
| - name: Deploy Documentation to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/_build/html |