Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
permissions:
contents: write

# Use a single shared concurrency group so all runs that write to gh-pages are
# serialised. A per-ref group still allows concurrent writes from different
# triggers and causes rebase conflicts on the gh-pages branch.
# cancel-in-progress: false ensures queued runs still execute.
concurrency:
group: gh-pages
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ permissions:
contents: write
pull-requests: write

concurrency: preview-${{ github.ref }}
# Use a single shared concurrency group so all runs that write to gh-pages are
# serialised. "preview-${{ github.ref }}" only serialises per PR, which still
# allows concurrent writes from different PRs (or synchronize vs. closed events)
# and causes "remote contains work not present locally" / rebase conflicts.
# cancel-in-progress: false ensures queued runs still execute (important for
# the "closed" event that removes a preview).
concurrency:
group: gh-pages
cancel-in-progress: false

jobs:
deploy-preview:
Expand Down
Loading