Skip to content

Commit 52a7f09

Browse files
fix(ci): trigger release build on release publish, not tag push
semantic-release creates the tag via the GitHub Releases API (@semantic-release/github). API-created tags don't emit the refs/tags/* push event that 'on: push: tags' listens for, so the artifact build never auto-ran — every release so far was built by manual workflow_dispatch. The PAT-published release does fire 'release: published', so trigger on that. workflow_dispatch stays as a manual fallback.
1 parent 5fa894d commit 52a7f09

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
release:
5+
types: [published]
76
workflow_dispatch:
87
inputs:
98
tag:

0 commit comments

Comments
 (0)