Skip to content

Commit 9b294dc

Browse files
chore(ci): sync publish.yml trigger to push:tags (#45)
Swap the publish workflow trigger from release:[published] to push:tags 'v*.*.*' to match attune-ai's publish-pypi.yml pattern (synced 2026-05-25; original change in attune-ai PR #459). The release:[published] event does NOT fire when the release is created by GITHUB_TOKEN (another workflow). Tag-push fires unconditionally regardless of actor. Today's manual flow (gh release create after tag push) keeps working; future release-automation workflows would have failed silently on the old trigger. No public API or package surface affected. CHANGELOG entry under [Unreleased]; no version bump (workflow-only change).
1 parent 2756595 commit 9b294dc

2 files changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
name: Publish to PyPI
22

33
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch: # Allow manual trigger
4+
# Trigger on tag push rather than release:[published]. Releases
5+
# created by GITHUB_TOKEN (i.e. by another workflow) do NOT fire
6+
# the `release:[published]` event — a documented GitHub Actions
7+
# limitation that bit attune-ai's v7.1.0 ship. Tag-push fires
8+
# unconditionally regardless of the actor, so the workflow runs
9+
# whether the release was created by `gh release create` (human),
10+
# a release-automation workflow, or just `git push origin <tag>`
11+
# without any release object at all. Matches the publish-pypi.yml
12+
# pattern in attune-ai (synced 2026-05-25).
13+
push:
14+
tags:
15+
- 'v*.*.*'
16+
workflow_dispatch: # Manual fallback / re-run on demand
717

818
permissions:
919
contents: read

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,21 @@ and this project adheres to
1010

1111
## [Unreleased]
1212

13-
Work in progress for the next release. Add entries here as
14-
changes land, not at tag time.
13+
### Changed
14+
15+
- **`publish.yml` trigger swapped from `release: [published]` to
16+
`push: tags: 'v*.*.*'`.** Aligns with the `publish-pypi.yml`
17+
pattern in attune-ai (synced 2026-05-25; original swap in
18+
attune-ai PR #459). Releases created by `GITHUB_TOKEN` (i.e.
19+
by another workflow) do NOT fire the `release:[published]`
20+
event — a documented GitHub Actions limitation that bit
21+
attune-ai's v7.1.0 ship. Tag-push fires unconditionally, so
22+
the publish workflow runs whether the release object was
23+
created by `gh release create` (human flow we use today), a
24+
release-automation workflow (future), or just `git push origin
25+
<tag>` without any release object at all. `workflow_dispatch`
26+
retained as fallback. No public API or package surface
27+
affected — this is CI hygiene.
1528

1629
## [0.14.1] - 2026-05-25
1730

0 commit comments

Comments
 (0)