Skip to content

Commit 016ad6f

Browse files
jonathanperisclaude
andcommitted
chore: consolidate deploy workflow to single-job GitHub Pages model
Align with the new GitHub Actions deployment model used in speedy-bird-lynx. Merges build and deploy into a single job, bumps Node to 22, removes verbose step names, and updates concurrency group. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d292c95 commit 016ad6f

1 file changed

Lines changed: 15 additions & 32 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,38 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: [main]
66
workflow_dispatch:
77

88
permissions:
9-
contents: read
109
pages: write
1110
id-token: write
11+
contents: read
1212

1313
concurrency:
14-
group: "pages"
14+
group: github-pages
1515
cancel-in-progress: false
1616

1717
jobs:
18-
build:
18+
deploy:
1919
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
2023
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v6
23-
24-
- name: Setup Node
25-
uses: actions/setup-node@v6
24+
- uses: actions/checkout@v6
25+
- uses: actions/setup-node@v6
2626
with:
27-
node-version: "20"
27+
node-version: "22"
2828
cache: "npm"
29-
30-
- name: Setup Pages
31-
uses: actions/configure-pages@v6
32-
33-
- name: Install dependencies
34-
run: npm ci
35-
36-
- name: Build
37-
run: npm run build
29+
- uses: actions/configure-pages@v6
30+
- run: npm ci
31+
- run: npm run build
3832
env:
3933
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4034
NEXT_PUBLIC_GA_ID: G-35CN95481D
41-
42-
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v4
35+
- uses: actions/upload-pages-artifact@v4
4436
with:
4537
path: ./out
46-
47-
deploy:
48-
environment:
49-
name: github-pages
50-
url: ${{ steps.deployment.outputs.page_url }}
51-
runs-on: ubuntu-latest
52-
needs: build
53-
steps:
54-
- name: Deploy to GitHub Pages
55-
id: deployment
38+
- id: deployment
5639
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)