What does `on: release` with `types: [published]` give you compared to a tag push?
IntermediateConceptTriggers & Events
Answer
release: published fires when a GitHub Release is published (including from drafts), with the release object in github.event.release (tag, body, assets upload URL, prerelease flag). A tag push fires as soon as the tag exists, before any release notes. Use release when humans curate notes or when you want prereleases to skip prod (if: ${{ !github.event.release.prerelease }}). Remember a release created by GITHUB_TOKEN will not trigger it.
More on Triggers & Events
How do you trigger a workflow on pushes to `main` and on PRs that target `main`?BeginnerWhat activity types does `pull_request` trigger on by default, and how do you add more?IntermediateHow do `branches` and `branches-ignore` filters work with globs?BeginnerHow do path filters work, and what are their limits?AdvancedHow do you trigger only on version tags, and what is the gotcha with pushing many tags?IntermediateWhat is `workflow_dispatch`, and what input types does it support?Beginner