Skip to content

Commit 6f35921

Browse files
greynewellclaude
andcommitted
Add PR build check and fix deploy workflow
- Add ci.yml: build-only check that runs on pull requests - Fix deploy workflow: use Go 1.25, install pssg@latest (no tag yet) - Rename deploy workflow to "Build & Deploy" for clarity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f4abb37 commit 6f35921

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

.github/workflows/build-index.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Index
1+
name: Build & Deploy
22

33
on:
44
push:
@@ -31,10 +31,10 @@ jobs:
3131

3232
- uses: actions/setup-go@v5
3333
with:
34-
go-version: '1.24'
34+
go-version: '1.25'
3535

3636
- name: Install pssg
37-
run: go install github.com/greynewell/pssg/cmd/pssg@v0.3.0
37+
run: go install github.com/greynewell/pssg/cmd/pssg@latest
3838

3939
- name: Add Go bin to PATH
4040
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'data/**'
7+
- 'templates/**'
8+
- 'pssg.yaml'
9+
- 'static/**'
10+
- '.github/workflows/ci.yml'
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: '1.25'
21+
22+
- name: Install pssg
23+
run: go install github.com/greynewell/pssg/cmd/pssg@latest
24+
25+
- name: Add Go bin to PATH
26+
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
27+
28+
- name: Build site
29+
run: pssg build -config pssg.yaml

0 commit comments

Comments
 (0)