From 1eb3bd25a272092c63aa9718dac0eda1d54a854f Mon Sep 17 00:00:00 2001 From: Mikey Lombardi Date: Tue, 30 Sep 2025 10:56:38 -0500 Subject: [PATCH] (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.129.0`, and adusts the GHA workflow to run without errors locally using ACT. --- .github/workflows/publish.site.yml | 6 ++++-- netlify.toml | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.site.yml b/.github/workflows/publish.site.yml index 4672a95..5cbc568 100644 --- a/.github/workflows/publish.site.yml +++ b/.github/workflows/publish.site.yml @@ -19,7 +19,7 @@ concurrency: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 with: @@ -27,11 +27,13 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 + with: + enablement: true - name: Setup Hugo id: hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: latest + hugo-version: 0.129.0 extended: true # - name: Setup Node # uses: actions/setup-node@v3 diff --git a/netlify.toml b/netlify.toml index 7e50505..12754e0 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,7 +5,7 @@ command = "../netlify.sh" ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ./docs ./samples ./tstoy" [context.production.environment] -HUGO_VERSION = "0.124.1" +HUGO_VERSION = "0.129.0" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -13,20 +13,20 @@ HUGO_ENABLEGITINFO = "true" command = "../netlify.sh" [context.split1.environment] -HUGO_VERSION = "0.124.1" +HUGO_VERSION = "0.129.0" HUGO_ENV = "production" [context.deploy-preview] command = "../netlify.sh" [context.deploy-preview.environment] -HUGO_VERSION = "0.124.1" +HUGO_VERSION = "0.129.0" [context.branch-deploy] command = "../netlify.sh" [context.branch-deploy.environment] -HUGO_VERSION = "0.124.1" +HUGO_VERSION = "0.129.0" [context.next.environment] HUGO_ENABLEGITINFO = "true"