- Merge all your changes to the stable branch
- If releasing a new major version, ensure that package name has been updated, e.g. if new version is
v6
package name in go.mod and every import should begithub.com/UpCloudLtd/upcloud-go-api/v6
- Update CHANGELOG.md
- Add new heading with the correct version e.g.
## [6.7.0]
- Update links at the bottom of the page
- Leave
## Unreleased
section at the top empty - Check that
Version
in upcloud/client/client.go is up-to-date. The value is automatically updated by GitHub Actions.
- Add new heading with the correct version e.g.
- Test GoReleaser config with
goreleaser check
- Tag a commit with the version you want to release e.g.
v6.7.0
- Push the tag & commit to GitHub
- GitHub action automatically
- sets the version based on the tag
- creates a draft release to GitHub
- populates the release notes from
CHANGELOG.md
withmake release-notes
- GitHub action automatically
- Verify that release notes are in line with
CHANGELOG.MD
- Publish the drafted release