ci: upgrade cryptography #130
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: generate docs | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Poetry | |
run: pip install poetry | |
- name: install | |
working-directory: backend | |
run: poetry install --with docs | |
- name: Build documentation | |
working-directory: backend | |
run: | | |
poetry run mkdocs build -f ../mkdocs.yml | |
- name: Copy site | |
run: | | |
mkdir -p gh-pages | |
touch gh-pages/.nojekyll | |
cp -r _site/* gh-pages | |
- name: Deploy documentation | |
if: ${{ github.event_name == 'push' }} | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: gh-pages | |
clean-exclude: | | |
coverage/* |