ci: Fix double triggering of release workflows (#17)

This commit is contained in:
Sean P. Kane
2026-01-05 16:15:43 -08:00
committed by GitHub
parent f3c92ec413
commit f58b32831c
3 changed files with 9 additions and 10 deletions
+3 -4
View File
@@ -1,12 +1,11 @@
name: Docker Release
# Only trigger on GitHub release publication, not on tag push.
# When a release is created, GitHub fires both 'release' and 'push' events.
# Using only 'release' prevents duplicate workflow runs.
on:
release:
types: [published]
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-*"
# Cancel in-progress runs for the same tag
concurrency:
+3 -2
View File
@@ -1,5 +1,8 @@
name: Docker Build
# Build and test Docker images on pushes to main and pull requests.
# Note: Version tags (v*) are NOT included here - they trigger docker-release.yaml
# via the 'release: published' event instead, to avoid duplicate workflow runs.
on:
push:
branches: [main, master]
@@ -9,8 +12,6 @@ on:
- "src/**/*.py"
- "pyproject.toml"
- ".github/workflows/docker.yaml"
tags:
- "v*"
pull_request:
branches: [main, master]
paths:
+3 -4
View File
@@ -1,12 +1,11 @@
name: PyPI Release
# Only trigger on GitHub release publication, not on tag push.
# When a release is created, GitHub fires both 'release' and 'push' events.
# Using only 'release' prevents duplicate workflow runs.
on:
release:
types: [published]
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-*"
# Cancel in-progress runs for the same tag
concurrency: