Skip to content

Commit 4042432

Browse files
henderkesclaude
andcommitted
Add deploy workflow as PENDING_ at repo root
This is the GitHub Actions workflow that will build and deploy the Astro site to GitHub Pages once site-rewrite-astro is merged. Lives at the repo root with a PENDING_ prefix so it does *not* fire from this branch — committing the workflow inside .github/workflows/ requires a PAT with the workflow scope, which the bot doesn't have. To activate it, a maintainer with the workflow scope should: git mv PENDING_workflow_site-deploy.yml .github/workflows/site-deploy.yml git commit && git push See the runbook in the PR description for the full cutover sequence (workflow rename, merge, flip Pages from legacy to workflow build). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3487d0f commit 4042432

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

PENDING_workflow_site-deploy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'site/**'
9+
- '.github/workflows/site-deploy.yml'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment, but cancel any in-flight run when a new push
18+
# arrives so we don't ship stale content if two pushes land back-to-back.
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: true
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: site
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: '22'
34+
cache: 'npm'
35+
cache-dependency-path: site/package-lock.json
36+
- run: npm ci
37+
- run: npm run build
38+
env:
39+
# Higher rate limit when querying the Releases API at build time.
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
- uses: actions/configure-pages@v5
42+
- uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: site/dist
45+
46+
deploy:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
53+
- id: deployment
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)