update links (#35) #36
This file contains 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: CI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
# Here I am assuming that the tests have been run on the PR | |
# Otherwise it could be possible that a direct push to main | |
# would not run the test code and still publish to PyPI | |
documentation-and-publish: | |
name: Build documentation and publish | |
runs-on: ubuntu-latest | |
# Always try to build the documentation! | |
# if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: Set up Git | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@v18 | |
- run: nix develop --command build-docs | |
# always deploy github-pages if pushed to main | |
- name: Deploy 🚀 | |
if: ${{ github.event_name == 'push' }} | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
# This should be set via `just build` | |
folder: docs/_build | |
# do not touch the pr-preview generated files: | |
# https://github.com/rossjrw/pr-preview-action | |
clean-exclude: pr-preview/ |