Skip to content

feat: Setup to host GitHub Pages #1

feat: Setup to host GitHub Pages

feat: Setup to host GitHub Pages #1

Workflow file for this run

name: 'Deploy doc'
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
deploy-doc:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- name: 'Configure dependencies'
run: |
uv sync --frozen --all-extras
- name: Build document
run: |
task build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: build/dirhtml
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4