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: