Skip to content

Build on GitHub Actions #3

Build on GitHub Actions

Build on GitHub Actions #3

Workflow file for this run

name: Build and publish documentation
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install pipx
run: sudo apt-get install -y pipx
- name: Install hatch
run: pipx install hatch==1.9.4
- uses: actions/checkout@v3
- name: Build documentation
run: hatch run dev:build
- uses: actions/upload-pages-artifact@v3
with:
path: build/html
# deploy: # https://github.com/actions/deploy-pages
# needs: build
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
# # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
# permissions:
# pages: write # to deploy to Pages
# id-token: write # to verify the deployment originates from an appropriate source
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v1