Skip to content

docs: snapshot v0.4.0 (manual fix for failed release-snapshot job)#287

Merged
erishforG merged 1 commit intodevelopfrom
chore/snapshot-v0.4.0
May 4, 2026
Merged

docs: snapshot v0.4.0 (manual fix for failed release-snapshot job)#287
erishforG merged 1 commit intodevelopfrom
chore/snapshot-v0.4.0

Conversation

@erishforG
Copy link
Copy Markdown
Owner

Why

The v0.4.0 release workflow's snapshot-versioned-docs job failed at the final git push origin main step:

```
remote: error: GH006: Protected branch update failed for refs/heads/main.
remote: - Changes must be made through a pull request.
remote: - 7 of 7 required status checks are expected.
```

The snapshot files were generated correctly inside the workflow runner, just couldn't land on main due to the protected-branch rule. Other release jobs (Tag & Publish, 4-OS binary builds, GitHub Release) all succeeded — v0.4.0 is on crates.io and Releases is fine. Only the versioned docs archive at `/v/0.4.0/` is missing.

What

Reproduces the workflow's sed transformations locally and ships through the proper PR path.

  • `docs/v/0.4.0/index.html`, `docs/v/0.4.0/guide/index.html`, `docs/v/0.4.0/reference/index.html` (paths rewritten, robots noindex, demo.gif src absolute, data-doc-version="0.4.0")
  • `docs/versions.json`: latest = "0.4.0", new entry prepended
  • `docs/sitemap.xml`: 3 new `/v/0.4.0/` entries

Verified

  • All 3 snapshot URLs render 200 on a local server
  • versions.json + sitemap.xml structurally valid

Follow-up (separate)

Long-term, the release.yml's snapshot job needs to either (a) use a PAT/app token with bypass perms, or (b) push to a feature branch and open a PR instead of direct push, so this doesn't fail on every release going forward. Tracked separately.

🤖 Generated with Claude Code

The release workflow's snapshot-versioned-docs job ran on the v0.4.0
release but failed at the final `git push origin main` step because
main is now protected and rejects direct pushes (even from the
github-actions bot):

  remote: error: GH006: Protected branch update failed for refs/heads/main.
  remote: - Changes must be made through a pull request.
  remote: - 7 of 7 required status checks are expected.

The snapshot itself was correctly generated by the workflow (per its
log), it just couldn't land it on main. Reproducing the same sed
transformations locally for docs/v/0.4.0/{index,guide,reference}/
and shipping via the proper develop → main path.

Changes:
- docs/v/0.4.0/index.html, guide/index.html, reference/index.html
  (generated using the same sed transformations as release.yml — paths
  rewritten to /git-parsec/v/0.4.0/, robots noindex, demo.gif src
  absolute, data-doc-version="0.4.0")
- docs/versions.json: latest = "0.4.0", new entry prepended
- docs/sitemap.xml: 3 new /v/0.4.0/{,/guide/,/reference/} entries

Note: v0.4.0 binary (crates.io) and GitHub Release are already shipped
correctly. This PR only fills the missing versioned docs archive.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@erishforG erishforG merged commit c5008c3 into develop May 4, 2026
11 checks passed
@erishforG erishforG deleted the chore/snapshot-v0.4.0 branch May 4, 2026 12:07
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