Skip to content

ci: serialize gh-pages deploys - #335

Merged
cailmdaley merged 1 commit into
developfrom
ci/pages-concurrency
Sep 8, 2026
Merged

ci: serialize gh-pages deploys#335
cailmdaley merged 1 commit into
developfrom
ci/pages-concurrency

Conversation

@cailmdaley

Copy link
Copy Markdown
Collaborator

Concurrent CD runs on back-to-back pushes race to push gh-pages, and the loser fails with "cannot lock ref 'refs/heads/gh-pages'" (run 34250154443). This scopes the docs job to a gh-pages-<ref> concurrency group so deploys queue instead of colliding, with cancel-in-progress: true since only one branch drives deploys here — a newer push supersedes a stale build in flight.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Wk8SZkCRuKQ5xu5g38zHpx

Concurrent doc-deploy runs on back-to-back pushes to develop both hit
peaceiris/actions-gh-pages at once, and the loser fails with
"cannot lock ref 'refs/heads/gh-pages'" (seen in run 34250154443).
Scope the job to a gh-pages-<ref> concurrency group; cancel-in-progress
is fine since develop only ever has one active deploy target and the
newest push should win over a stale one still building.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wk8SZkCRuKQ5xu5g38zHpx
@cailmdaley
cailmdaley merged commit 3585b2e into develop Sep 8, 2026
3 checks passed
@cailmdaley
cailmdaley deleted the ci/pages-concurrency branch September 8, 2026 16:34
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