Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a GitHub Release when publishing a new buildpack version (#1663)
Previously when a new buildpack version was published only a Git tag was created. Now a GitHub release will be too, which contains the release's changelog entry extracted from `CHANGELOG.md`. This change makes it possible for people to subscribe to just the repository release event notifications, rather than needing to subscribe to all pull requests events and manually spot release PRs being opened/merged. The GitHub CLI is used to create the release, which also creates the Git tag - meaning the manual Git revision/tag/push steps are no longer required. In addition, some environment/release validation checks have been added, which: - Improve the onboarding UX if required tools aren't installed. - Prevent accidentally running the publish step before having triggered/merged the prepare release PR workflow. - Prevent version mismatch issues if the buildpack were ever rolled back on the registry. See: https://cli.github.com/manual/gh_release_view https://cli.github.com/manual/gh_release_create https://github.com/heroku/libcnb.rs/blob/ba5e8231b88f6f72533e8a9ba01d9745b3f40301/.github/workflows/release.yml#L52-L60 GUS-W-16959313.
- Loading branch information