Skip to content

Commit d81e72e

Browse files
committed
Fix publish workflow to only build devel branch
The publish workflow was still using `make static-all` which attempts to build all release branches. This fails because different branches require different Hugo versions and themes (old branches use hugo-theme-learn while devel now uses hugo-theme-relearn). This change mirrors the fix in f01c92a which updated build.yml to use `make static` instead. Additionally, the workflow now only triggers on the devel branch since release branches don't get a site published anyway, and running publish from a release branch would only publish that branch's content, which would be incomplete. Fixes the publish job failure after PR #1322 was merged. Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
1 parent f01c92a commit d81e72e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches:
77
- devel
8-
- 'release-*'
98

109
permissions: {}
1110

@@ -33,8 +32,8 @@ jobs:
3332
env:
3433
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
3534

36-
- name: Build the website static files for each release
37-
run: make static-all
35+
- name: Build the website static files
36+
run: make static
3837

3938
- name: Push the updated static files
4039
run: ./scripts/publish

0 commit comments

Comments
 (0)