chore: upgrade actions #23
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 documentation | |
on: | |
push: | |
branches: [master] | |
# Environment | |
env: | |
PYTHON_VERSION: 3.10 | |
jobs: | |
# Build and deploy documentation site | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source form GitHub | |
uses: actions/checkout@v5 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Install Python runtime and dependencies | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
cache: 'poetry' | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Deploy | |
run: | | |
poetry run mkdocs gh-deploy --force |