- Make sure you have the Sphinx
conf.py
set correctly:
html_baseurl = 'http://ukaea.github.io/scientific-python-cookiecutter/'
- Add this action to the GitHub Actions:
- name: Deploy tutorial
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_branch: gh-pages
- Adjust settings of GitHub repo to use the gh-pages branch:
Settings > Pages > Source > Branch: gh-pages > /(root)