Skip to content

Merge pull request #105 from Linuxfabrik/dependabot/github_actions/ac… #11

Merge pull request #105 from Linuxfabrik/dependabot/github_actions/ac…

Merge pull request #105 from Linuxfabrik/dependabot/github_actions/ac… #11

Workflow file for this run

name: 'Deploy API Documentation'
on:
push:
branches:
- 'main'
permissions:
contents: 'read'
pages: 'write'
id-token: 'write'
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout repository'
uses: 'actions/checkout@v6'
- name: 'Set up Python'
uses: 'actions/setup-python@v5'
with:
python-version: '3.12'
- name: 'Install dependencies'
run: |
pip install --editable .
pip install pdoc
- name: 'Build documentation'
run: 'pdoc --output-directory docs lib'
- name: 'Add .nojekyll'
run: 'touch docs/.nojekyll'
- name: 'Upload Pages artifact'
uses: 'actions/upload-pages-artifact@v4'
with:
path: 'docs'
deploy:
needs: 'build'
runs-on: 'ubuntu-latest'
environment:
name: 'github-pages'
url: '${{ steps.deployment.outputs.page_url }}'
steps:
- name: 'Deploy to GitHub Pages'
id: 'deployment'
uses: 'actions/deploy-pages@v5'