Skip to content

Commit 6a245a4

Browse files
(MAINT) Update CI for site building
This change updates the GHA workflow and netlify configuration for building the samples site. It pins to the last known successful version of Hugo for the site build, `v0.148.2`, and adusts the GHA workflow to run without errors locally using ACT.
1 parent 8e61e1d commit 6a245a4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/publish.site.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@ concurrency:
1919

2020
jobs:
2121
build:
22-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v5
2525
with:
2626
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2727
- name: Setup Pages
2828
id: pages
2929
uses: actions/configure-pages@v5
30+
with:
31+
enablement: true
3032
- name: Setup Hugo
3133
id: hugo
3234
uses: peaceiris/actions-hugo@v3
3335
with:
34-
hugo-version: latest
36+
hugo-version: 0.148.2
3537
extended: true
3638
# - name: Setup Node
3739
# uses: actions/setup-node@v3

netlify.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ command = "../netlify.sh"
55
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ./docs ./samples ./tstoy"
66

77
[context.production.environment]
8-
HUGO_VERSION = "0.124.1"
8+
HUGO_VERSION = "0.148.2"
99
HUGO_ENV = "production"
1010
HUGO_ENABLEGITINFO = "true"
1111

1212
[context.split1]
1313
command = "../netlify.sh"
1414

1515
[context.split1.environment]
16-
HUGO_VERSION = "0.124.1"
16+
HUGO_VERSION = "0.148.2"
1717
HUGO_ENV = "production"
1818

1919
[context.deploy-preview]
2020
command = "../netlify.sh"
2121

2222
[context.deploy-preview.environment]
23-
HUGO_VERSION = "0.124.1"
23+
HUGO_VERSION = "0.148.2"
2424

2525
[context.branch-deploy]
2626
command = "../netlify.sh"
2727

2828
[context.branch-deploy.environment]
29-
HUGO_VERSION = "0.124.1"
29+
HUGO_VERSION = "0.148.2"
3030

3131
[context.next.environment]
3232
HUGO_ENABLEGITINFO = "true"

0 commit comments

Comments
 (0)