ci: add github pages deployment workflow

This commit is contained in:
MrPiglr 2026-01-02 15:04:29 -07:00
parent e2c6d10acb
commit b519893c9c

View file

@ -1,4 +1,4 @@
name: Deploy Documentation to GitHub Pages
name: Deploy Documentation
on:
push:
@ -6,17 +6,14 @@ on:
- main
paths:
- 'docs/**'
- '.github/workflows/deploy-docs.yml'
- '*.md'
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
@ -37,7 +34,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
path: './docs'
- name: Deploy to GitHub Pages
id: deployment