You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Have a gpg key installed on your machine - it is [used for signing the artifacts](https://goreleaser.com/sign/)
12
12
13
+
## Confirm / Update the Changelog
14
+
15
+
Make sure all the recent changes are reflected in the "next release" section of the CHANGELOG.md file. All the changes in the "next release" section should be moved to a new section that describes the version number, and gives it a date.
GoReleaser supports the [auto generation of a changelog](https://goreleaser.com/customization/#customize-the-changelog) we will want to customize to meet our standards (not including refactors, test updates, etc). We should also consider using [the release notes feature](https://goreleaser.com/customization/#custom-release-notes).
21
+
22
+
## Bump the version
23
+
24
+
Edit the `Version` constant in `cmd/version.go`
25
+
26
+
_Note: It's useful to add the version to the commit message when you bump it: e.g. `Bump version to v2.3.4`._
27
+
28
+
In the future we will probably want to replace the hardcoded `Version` constant with [main.version](https://goreleaser.com/environment/#using-the-main-version). Here is a [stack overflow post on injecting to cmd/version.go](https://stackoverflow.com/a/47510909).
29
+
30
+
Commit this change on a branch along with the CHANGELOG updates in a single commit, and create a PR for merge to master.
31
+
13
32
## Cut a release
14
33
15
34
```bash
16
-
17
35
# Test run
18
36
goreleaser --skip-publish --snapshot --rm-dist
19
37
20
-
#Commit any changes, then create a new tag and push it
38
+
#Create a new tag on the master branch and push it
21
39
git tag -a v3.0.16 -m "Trying out GoReleaser"
22
40
git push origin v3.0.16
23
41
24
42
# Build and release
25
43
goreleaser --rm-dist
26
44
27
-
# Remember to update cmd/version.go in the code
28
-
# (until we use: https://goreleaser.com/environment/#using-the-main-version)
29
-
30
45
# You must be logged into snapcraft to publish a new snap
# Run [exercism-cp-archive-hack.sh](https://gist.github.com/ekingery/961650fca4e2233098c8320f32736836) which takes the new archive files and renames them to match the old naming scheme for backward compatibility.
39
52
```
40
53
41
-
Lastly, head to [the release page](https://github.com/exercism/cli/releases) to test and publish the draft. Until mid to late 2020, we will need to manually upload the backward-compatible archive files generated in `/tmp/exercism_tmp_upload` by the shell script referenced above.
42
-
43
-
44
-
## Confirm / Update the Changelog
45
-
46
-
GoReleaser supports [auto generation of changelog](https://goreleaser.com/customization/#customize-the-changelog) that we will want to customize to meet our standards (not including refactors, test updates, etc). We should also consider [the release notes](https://goreleaser.com/customization/#custom-release-notes).
47
-
48
-
Make sure all the recent changes are reflected in the "next release" section
49
-
of the Changelog. Make this a separate commit from bumping the version.
Edit the `Version` constant in `cmd/version.go`, and edit the Changelog.
58
-
59
-
All the changes in the "next release" section should be moved to a new section
60
-
that describes the version number, and gives it a date.
61
-
62
-
The "next release" section should contain only "Your contribution here".
63
-
64
-
_Note: It's useful to add the version to the commit message when you bump it: e.g. `Bump version to v2.3.4`._
65
-
66
-
In the future we will probably want to replace the hardcoded `Version` constant with [main.version](https://goreleaser.com/environment/#using-the-main-version). Here is a [stack overflow post on injecting to cmd/version.go](https://stackoverflow.com/a/47510909).
67
-
68
54
## Cut Release on GitHub
69
55
70
-
Go to [the exercism/cli "new release" page](https://github.com/exercism/cli/releases/new).
56
+
Run [exercism-cp-archive-hack.sh](https://gist.github.com/ekingery/961650fca4e2233098c8320f32736836) which takes the new archive files and renames them to match the old naming scheme for backward compatibility. Until mid to late 2020, we will need to manually upload the backward-compatible archive files generated in `/tmp/exercism_tmp_upload`.
71
57
72
-
A draft will have been auto-generated by GoReleaser. Describe the release, select a specific commit to target, paste the release text and describe the new changes.
58
+
The generated archive files should be uploaded to the [draft release page created by GoReleaser](https://github.com/exercism/cli/releases). Describe the release, select a specific commit to target, paste the following release text, and describe the new changes.
73
59
74
60
```
75
61
To install, follow the interactive installation instructions at https://exercism.io/cli-walkthrough
0 commit comments