Add GitHub Pages deployment workflow

Adds automated deployment of documentation to GitHub Pages when
changes are pushed to the docs directory on the main branch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Kieran Klaassen
2025-11-26 12:23:59 -08:00
parent 733e59a7a5
commit b503a3ecb3

39
.github/workflows/deploy-docs.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Deploy Documentation to GitHub Pages
on:
push:
branches: [main]
paths:
- 'plugins/compounding-engineering/docs/**'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'plugins/compounding-engineering/docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4