From 164b6a5ea293baffc4a5d81e3398bc612159883d Mon Sep 17 00:00:00 2001 From: dem-extra1 Date: Mon, 24 Aug 2026 22:32:24 -0700 Subject: [PATCH] fix: avoid nested concurrency collision in publish workflow --- .github/workflows/website-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/website-publish.yml b/.github/workflows/website-publish.yml index eb475dca..ad8e2e31 100644 --- a/.github/workflows/website-publish.yml +++ b/.github/workflows/website-publish.yml @@ -12,10 +12,11 @@ on: branches: [main] workflow_dispatch: -# Serialize deploys so two pushes don't race on the gh-pages branch. +# Cancel in-progress runs on the same branch so we only publish the latest commit. +# The called workflow handles serializing the actual gh-pages git push. concurrency: - group: gh-pages - cancel-in-progress: false + group: website-publish-${{ github.ref }} + cancel-in-progress: true jobs: publish: