From ab3a0f3ce91e315398849a8068be05059ffa2dcb Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 15:11:44 +0000 Subject: [PATCH 1/2] Build and deploy the Hugo site from an in-repo workflow The darbiadev reusable workflow this repo called no longer exists. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs.yaml | 51 ++++++++++++++++++++++++++++++ .github/workflows/hugo-deploy.yaml | 17 ---------- 2 files changed, 51 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/docs.yaml delete mode 100644 .github/workflows/hugo-deploy.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000..cb2587a --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,51 @@ +name: Docs + +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + submodules: recursive + + - name: Install Hugo + run: sudo snap install hugo + + - name: Build site + run: hugo --gc --minify + + - name: Upload artifact + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 + with: + path: ./public + + deploy: + if: ${{ github.ref == 'refs/heads/main' }} + + permissions: + contents: read + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 diff --git a/.github/workflows/hugo-deploy.yaml b/.github/workflows/hugo-deploy.yaml deleted file mode 100644 index a7d8cb9..0000000 --- a/.github/workflows/hugo-deploy.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: "GitHub Pages - Hugo" - -on: - push: - branches: - - main - pull_request: - -jobs: - docs: - # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages - permissions: - contents: read - pages: write - id-token: write - - uses: darbiadev/.github/.github/workflows/github-pages-go-hugo.yaml@29197a38ef3741064f47b623ede0c1ad22402c57 # v13.0.3 From ebe97d34fa04340248940fa7ef13d00ad819bca4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 15:13:42 +0000 Subject: [PATCH 2/2] Update PaperMod to its current release The pinned 2022 theme calls site.Social, which current Hugo no longer has, so the build failed once the workflow installed today's Hugo. Co-Authored-By: Claude Opus 5.5 --- themes/PaperMod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/PaperMod b/themes/PaperMod index d3d90be..1181196 160000 --- a/themes/PaperMod +++ b/themes/PaperMod @@ -1 +1 @@ -Subproject commit d3d90be8a4ea04433d95d02a1dc07b0014c5b8b8 +Subproject commit 118119693d8b5ac211b939775678310973bcb232