Skip to content

Packaging the project #6

Packaging the project

Packaging the project #6

Workflow file for this run

name: documentation
on: [push, pull_request, workflow_dispatch]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- name: Install dependencies
run: |
sudo apt update
sudo apt install pandoc
sudo apt install pipx
pipx install hatch
- name: sphinx build
run: |
hatch run docs:build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './docs/_build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4