|
1 | 1 | # Releasing |
2 | 2 |
|
3 | 3 | 1. Merge all your changes to the stable branch |
4 | | -1. 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 be `github.com/UpCloudLtd/upcloud-go-api/v6` |
5 | | -1. Update CHANGELOG.md |
6 | | - 1. Add new heading with the correct version e.g. `## [v2.3.5]` |
7 | | - 1. Update links at the bottom of the page |
8 | | - 1. Leave “Unreleased” section at the top empty |
9 | | -1. Update `Version` in [upcloud/client/client.go](./upcloud/client/client.go) |
10 | | -1. Visit the repo [GitHub releases-page](https://github.com/UpCloudLtd/upcloud-go-api/releases) and draft a new release |
11 | | -1. Tag the release `vX.Y.Z` (e.g. `v2.3.5`) |
12 | | -1. Select the stable branch |
13 | | -1. Title the release “vX.Y.Z” |
14 | | -1. In the description of the release, paste the changes from CHANGELOG.md for this version release |
15 | | -1. Publish the release when you are ready |
| 4 | +2. 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 be `github.com/UpCloudLtd/upcloud-go-api/v6` |
| 5 | +3. Update CHANGELOG.md |
| 6 | + 1. Add new heading with the correct version e.g. `## [6.7.0]` |
| 7 | + 2. Update links at the bottom of the page |
| 8 | + 3. Leave `## Unreleased` section at the top empty |
| 9 | +4. Update `Version` in [upcloud/client/client.go](./upcloud/client/client.go) |
| 10 | +5. Test GoReleaser config with `goreleaser check` |
| 11 | +6. Tag a commit with the version you want to release e.g. `v6.7.0` |
| 12 | +7. Push the tag & commit to GitHub |
| 13 | + - GitHub action automatically |
| 14 | + - sets the version based on the tag |
| 15 | + - creates a draft release to GitHub |
| 16 | + - populates the release notes from `CHANGELOG.md` with `make release-notes` |
| 17 | +8. Verify that [release notes](https://github.com/UpCloudLtd/upcloud-go-api/releases) are in line with `CHANGELOG.MD` |
| 18 | +9. Publish the drafted release |
0 commit comments