Skip to content

ci: migrate GitHub Pages to Actions-based deployment#64

Merged
michaelbeutler merged 1 commit into
mainfrom
ci/migrate-pages-to-actions
Jun 10, 2026
Merged

ci: migrate GitHub Pages to Actions-based deployment#64
michaelbeutler merged 1 commit into
mainfrom
ci/migrate-pages-to-actions

Conversation

@michaelbeutler

Copy link
Copy Markdown
Contributor

Problem

GitHub Pages for helm.truvami.com started failing on 2026-06-10 with:

Error: Failed to create deployment (status: 401) ... HttpError: Requires authentication

The error comes from GitHub's auto-injected pages-build-deployment workflow that runs on every gh-pages push (legacy "deploy from a branch" mode). All config was verified healthy (Pages enabled, valid cert, gh-pages allowed by the github-pages environment branch policy, write default token perms). It worked on 2026-06-09 and broke on 2026-06-10 with no config change — the legacy deploy pipeline appears to be in a wedged state (the latest legacy build is stuck in building).

Fix

Migrate Pages publishing from the legacy branch build to the GitHub Actions deployment pipeline. A new deploy-pages job in release.yml:

  • runs after charts (so it deploys the freshly-updated index.yaml)
  • checks out gh-pages, stages it into _site (excluding .git)
  • actions/configure-pages@v5 with enablement: true — flips the Pages build type legacyworkflow on first run
  • actions/upload-pages-artifact@v3 + actions/deploy-pages@v4

The custom domain (helm.truvami.com) and cert are stored at the repo level and persist across the build-type change; CNAME is also retained in the uploaded artifact.

After merge

  • The legacy pages-build-deployment workflow stops auto-running once the build type is workflow.
  • If configure-pages enablement does not auto-flip the existing legacy site, set Settings → Pages → Source → GitHub Actions once, then re-run the workflow.

The legacy 'deploy from a branch' Pages build (gh-pages) began failing with
'401 Requires authentication' from the auto-injected pages-build-deployment
workflow. Add a deploy-pages job to the release workflow that publishes the
gh-pages content via actions/upload-pages-artifact + actions/deploy-pages, and
flips the Pages build type from legacy to workflow via configure-pages
enablement on first run.
@michaelbeutler michaelbeutler merged commit 99bf0c7 into main Jun 10, 2026
9 of 10 checks passed
@michaelbeutler michaelbeutler deleted the ci/migrate-pages-to-actions branch June 10, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant