Skip to content

fix: correct deploy-pages SHA and set VITE_BASE for GitHub Pages - #1430

Merged
mgarbs merged 1 commit into
mainfrom
fix/deploy-site-workflow
Mar 17, 2026
Merged

fix: correct deploy-pages SHA and set VITE_BASE for GitHub Pages#1430
mgarbs merged 1 commit into
mainfrom
fix/deploy-site-workflow

Conversation

@mgarbs

@mgarbs mgarbs commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix incorrect actions/deploy-pages SHA — the pinned commit hash d6db9...603fc does not exist (404), causing the deploy job to fail at "Set up job". The correct SHA for v4.0.5 is d6db9...0c03e.
  • Move configure-pages step before the Vite build and pass its base_path output as VITE_BASE so asset paths resolve correctly under /hiero-improvement-proposals/ on GitHub Pages.

Root Cause

The deploy workflow was introduced in #1423 with a subtly corrupted SHA for actions/deploy-pages — the two hashes differ by only a few hex characters near the end. The build job has always succeeded, but the deploy job has never completed.

Additionally, without VITE_BASE set, even a successful deploy would serve a broken site — all CSS, JS, and images would 404 because Vite would emit paths relative to / instead of /hiero-improvement-proposals/.

What Changed

Before After
actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac2b3c603fc (does not exist) actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e (v4.0.5)
configure-pages ran after vite build configure-pages runs before vite build, output feeds VITE_BASE

Recommendation

After merging, switch the GitHub Pages source in Settings → Pages → Build and deployment → Source from "Deploy from a branch" to "GitHub Actions". The current legacy (Jekyll) setting triggers a separate build that always fails.

Test plan

🤖 Generated with Claude Code

The deploy job was failing because the pinned SHA for actions/deploy-pages
was incorrect (d6db9...603fc vs the actual v4.0.5 SHA d6db9...0c03e),
causing a 404 when the runner tried to download the action.

Additionally, move the configure-pages step before the build so its
base_path output can be passed as VITE_BASE to Vite. Without this, all
asset paths resolve against "/" instead of "/hiero-improvement-proposals/",
breaking CSS, JS, and images on the deployed site.

Signed-off-by: Michael Garber <michael.garber@hashgraph.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mgarbs
mgarbs requested review from a team as code owners March 17, 2026 13:03
@mgarbs
mgarbs requested a review from andrewb1269 March 17, 2026 13:03
@mgarbs
mgarbs merged commit 29787f8 into main Mar 17, 2026
9 of 13 checks passed
@mgarbs
mgarbs deleted the fix/deploy-site-workflow branch March 17, 2026 13:37
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.

2 participants