This repository houses the authoritative versions of shared build infrastructure files.
gh-release
reads the latest release on GitHub, checks out its
tag and runs a build command (defaults to make archive
) with GOOS
/ GOARCH
combinations defined in the script. After that, it attaches the resulting
tarball to the release.
For authentication a GitHub Personal Access Token
is required. This can be provided via the GITHUB_TOKEN
env variable or written to
~/.github-token
.
To build a new release, you need to
- Change to the repo you want to create a release from
- Bump version in Makefile and commit the changes
- Run
make tag
to tag and push the current revision - Create a GitHub release for the new tag
- Run
gh-release [optional-build-command]