Releasing
sh
git tag -a v0.3.0 -m v0.3.0 && git push origin v0.3.0The release workflow then:
- runs
make vet test, - builds the archives with
make dist(macOS and Linux, amd64 and arm64, pluschecksums.txt), - publishes them on the GitHub release.
To write the release notes yourself, draft the release before pushing the tag; the workflow adds the files to it. Otherwise the notes are generated.
Homebrew
The formula lives in krank56/homebrew-tap. Its bump workflow checks for a new release every hour, and can also be run from the Actions tab. When there is one, it renders the formula with the new checksums, installs and tests it with brew on macOS, and commits it. No token crosses repositories.
Building archives locally
sh
make dist VERSION=v0.3.0
ls dist/