Skip to content

Commit e37c557

Browse files
manugargclaude
andcommitted
Fix concurrent Pages deployment causing duplicate artifact error
cancel-in-progress: true ensures a newer run cancels the previous in-progress one instead of both uploading a "github-pages" artifact concurrently, which triggers the "artifact count is 2" deploy error. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent febcc37 commit e37c557

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ permissions:
1515
pages: write
1616
id-token: write
1717

18-
# Only one Pages deployment at a time; skip queued runs but don't cancel
19-
# an in-progress deploy.
18+
# Only one Pages deployment at a time. Cancel any in-progress run when a
19+
# newer one starts, preventing the "multiple github-pages artifacts" error
20+
# that occurs when two runs both reach the upload step concurrently.
2021
concurrency:
2122
group: pages
22-
cancel-in-progress: false
23+
cancel-in-progress: true
2324

2425
jobs:
2526
deploy:

0 commit comments

Comments
 (0)