Merge pull request #28 from iangrooms/ian #73
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 to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - source # Trigger the workflow on push to source branch | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest # Specifies the runner environment | |
| steps: | |
| - uses: actions/checkout@v2 # Checks-out your repository | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.12 | |
| - name: Install Dependencies | |
| run: | | |
| pip uninstall docutils | |
| pip install docutils | |
| pip install --upgrade Sphinx | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install sphinxcontrib-bibtex | |
| - name: Build Documentation | |
| run: | | |
| cd doc | |
| make html | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} # GitHub automatically creates this secret to use in your workflow | |
| publish_dir: ./doc/_build/html # Directory containing built docs | |
| publish_branch: master # The branch you are deploying to (GitHub Pages) |