mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-03-28 17:32:37 +01:00
ci(deploy): add concurrency to prevent duplicate artifacts
prevents multiple deploy workflows from running concurrently for the same branch, which caused "multiple github-pages artifacts" errors when builds completed close together.
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -21,6 +21,12 @@ on:
|
||||
env:
|
||||
BUILD_PATH: 'blog-build'
|
||||
|
||||
# Prevent concurrent deployments to the same target
|
||||
# This avoids the "multiple github-pages artifacts" error
|
||||
concurrency:
|
||||
group: deploy-${{ github.event.workflow_run.head_branch }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
deploy-ipfs:
|
||||
if: github.event.workflow_run.conclusion == 'success'
|
||||
|
||||
Reference in New Issue
Block a user