2020-09-02 11:30:40 +02:00
|
|
|
# Releasing
|
|
|
|
|
|
|
|
This tool uses Go Releaser to manage release builds.
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
Install Go Releaser.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brew install goreleaser/tap/goreleaser
|
|
|
|
```
|
|
|
|
|
|
|
|
* Make a [New personal access token on GitHub](https://github.com/settings/tokens/new) and set it as the `GITHUB_TOKEN` environment variable
|
|
|
|
|
|
|
|
## Releasing
|
|
|
|
|
|
|
|
Tag the repo:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git tag -a v0.1.0 -m "release tag."
|
|
|
|
$ git push origin v0.1.0
|
|
|
|
```
|
|
|
|
|
|
|
|
Then:
|
|
|
|
|
|
|
|
```bash
|
2021-02-14 14:24:04 +01:00
|
|
|
GITHUB_TOKEN=xxx goreleaser --rm-dist
|
2020-09-02 11:30:40 +02:00
|
|
|
```
|
2021-11-14 12:09:42 +01:00
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
To test and verify changes to Go Releaser config, use the following:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
goreleaser --snapshot --skip-publish --rm-dist
|
|
|
|
```
|