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:
Marcin Rataj
2026-01-22 15:23:16 +01:00
parent b96fb2fcff
commit e22e2aed72

View File

@@ -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'