Skip to content

Commit 8072de9

Browse files
lidge-junclaude
andcommitted
ci(pages): deploy docs-site to GitHub Pages via Astro action
withastro/action@v3 (path=docs-site, bun) builds + uploads; actions/deploy-pages@v4 publishes. Triggers on push to main under docs-site/** (+ manual dispatch). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 102f8c6 commit 8072de9

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Docs to GitHub Pages
2+
3+
on:
4+
# Rebuild when the docs site or this workflow changes on main.
5+
push:
6+
branches: [main]
7+
paths:
8+
- "docs-site/**"
9+
- ".github/workflows/deploy-docs.yml"
10+
# Allow manual runs from the Actions tab.
11+
workflow_dispatch:
12+
13+
# Least-privilege token needed to publish to GitHub Pages.
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Never run two Pages deploys at once; let an in-flight deploy finish.
20+
concurrency:
21+
group: pages
22+
cancel-in-progress: false
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
- name: Build with Astro
31+
uses: withastro/action@v3
32+
with:
33+
path: ./docs-site
34+
package-manager: bun@latest
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)