From 1ec62ee138befffa754580f599aefbcdab84010c Mon Sep 17 00:00:00 2001 From: Cail Daley Date: Tue, 8 Sep 2026 18:24:15 +0200 Subject: [PATCH] ci: queue gh-pages deploys instead of racing Concurrent CD runs on back-to-back pushes to develop/main both hit peaceiris/actions-gh-pages at once, and the loser fails with "cannot lock ref 'refs/heads/gh-pages'" (seen in run 34250036637). Scope the job to a gh-pages- concurrency group; cancel-in-progress is fine since the branch 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 Claude-Session: https://claude.ai/code/session_01Wk8SZkCRuKQ5xu5g38zHpx --- .github/workflows/cd-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cd-build.yml b/.github/workflows/cd-build.yml index 35ac37d..d1a5834 100644 --- a/.github/workflows/cd-build.yml +++ b/.github/workflows/cd-build.yml @@ -21,6 +21,9 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + concurrency: + group: gh-pages-${{ github.ref }} + cancel-in-progress: true steps: - name: Checkout