Skip to content

Fail Pages deploys that do not go live - #47

Merged
ludfjig merged 1 commit into
mainfrom
pages-deploy-check
Nov 10, 2026
Merged

ludfjig merged 1 commit into
mainfrom
pages-deploy-check

Conversation

@ludfjig

@ludfjig ludfjig commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

actions/deploy-pages uses GITHUB_SHA as the Pages build version. Pages runs on main, so every deploy between merges reuses one version, and the status check reports success right away. On #46, a deploy reported success but Pages kept serving the previous site, so the preview stayed stale with a green job.

  • Assemble adds marker files at a path unique to the run attempt.
  • After deploying, the job polls a different marker every 10 seconds and fails after 5 minutes. Fresh paths avoid 404s cached by the CDN, which ignores query strings.

The check only runs from main, so it gets exercised after merge.

actions/deploy-pages uses GITHUB_SHA as the Pages build version. Pages runs on main, so every deploy between merges reuses one version and the status check reports success right away. One deploy reported success but Pages kept serving the previous site, so a preview stayed stale with a green job.

Assemble now adds marker files at a path unique to the run attempt. After deploying, the job polls a different marker each time until one is served, and fails after 5 minutes. Fresh paths avoid 404s cached by the CDN, which ignores query strings.

Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig
ludfjig merged commit cbc9bee into main Nov 10, 2026
21 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant