Interview Prep/GitHub Actions/Triggers & Events

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on Triggers & Events