ci: Install poetry before building docs #3
Workflow file for this run
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: build_and_publish_docs | |
on: | |
push: | |
branches: | |
- fix/doc-workflow | |
workflow_dispatch: | |
permissions: | |
contents: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
publish: | |
name: build and publish docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: setup poetry | |
run: | | |
python -m pip install --upgrade pip poetry | |
- name: install dependencies | |
run: poetry install | |
- name: build documentation | |
run: make build_docs | |
- name: remove jekyll theming | |
run: touch docs/_build/html/.nojekyll | |
- name: deploy website | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: docs/_build/html | |
single-commit: True |