Skip to content

ci: bump upload-pages-artifact to v4.0.0 to fix Pages deploy under M14 - #278

Merged
RGood merged 1 commit into
mainfrom
m14/fix-pages-artifact-nested-pin
Nov 10, 2026
Merged

RGood merged 1 commit into
mainfrom
m14/fix-pages-artifact-nested-pin

Conversation

@RGood

@RGood RGood commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Problem

Since the M14 settings change (SHA pinning required, GitHub-owned actions only), every push to main fails the "Deploy to GitHub Pages" workflow:

The action actions/upload-artifact@v4 is not allowed in reddit/devvit-docs because ... All actions must also be pinned to a full-length commit SHA.

actions/upload-pages-artifact v3 is pinned in deploy.yml, but the action internally calls actions/upload-artifact@v4 (an unpinned tag). The SHA-pinning requirement applies to those nested references too. Failing runs: https://github.com/reddit/devvit-docs/actions/runs/42880123163

Fix

Bump actions/upload-pages-artifact from v3 (56afc60…) to v4.0.0 (7b1f4a7…), whose internal upload-artifact is pinned to a full SHA (v4.6.2). Same pinned-SHA convention with a version comment.

Notes

  • v4 no longer uploads hidden files (dotfiles). The repo ships none from static/, so the site output is unaffected.
  • actions/deploy-pages stays on the pinned v4 and is compatible.
  • Part of M14 follow-up. Merging this restores deploys; the site is currently un-deployed at the Restrict CI credentials and isolate PR preview builds #247 commit.

Testing

This workflow runs only on push to main, so it can't be verified on the PR. After merge, confirm the "Deploy to GitHub Pages" run on main succeeds. The build check on this PR covers the docs build itself.

@RGood
RGood requested review from a team and ben-harris-5 November 10, 2026 18:58
@RGood
RGood merged commit de8c0dc into main Nov 10, 2026
5 checks passed
@RGood
RGood deleted the m14/fix-pages-artifact-nested-pin branch November 10, 2026 19:05
RGood added a commit that referenced this pull request Nov 10, 2026
…t) (#279)

## Why
After #278 (bump `upload-pages-artifact` to v4.0.0), the Pages deploy
hangs: `deploy-pages` polls "Getting Pages deployment status" with an
empty status for 10 minutes, then times out and cancels. This happened
twice on `de8c0dc`:
- https://github.com/reddit/devvit-docs/actions/runs/42881767862

The build and artifact upload succeed (157 MB, same size as before), and
githubstatus shows Pages/Actions operational. Every successful deploy
used the v3 artifact; both hung deploys used the v4.0.0 artifact. This
PR is an **A/B test** to see whether the artifact version is the cause.

## Change
Revert only `actions/upload-pages-artifact` to the previously used
v3.0.1 (`56afc60…`), keeping the SHA pin and version comment.
`devvit-docs` is now exempt from the "require full SHA" setting, and v3
only calls GitHub-owned `actions/upload-artifact@v4`, which is allowed.

## What to check after merge
The "Deploy to GitHub Pages" run on `main` should finish in roughly 3-4
minutes (previous successes: 184-480s).
- **Succeeds:** v4.0.0 (or the nested change) is the cause. Next try
v5.0.0 (`fc324d3…`) or investigate the artifact.
- **Still hangs:** the artifact version isn't the cause; look at Pages
service/site size (157 MB) and try a longer `timeout` on `deploy-pages`.

## Notes
- This workflow only runs on push to `main`, so it cannot be verified on
the PR itself.
- Temporary. If v3 works, decide whether to keep it, move to v5, or
re-enable SHA pinning with a different fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants