Want to release a new binary on Github for every new git tag (e.g. v1.2.7
)? Here is a simple Github Actions yaml config file that should get you started.
This script will automatically checkout your code, setup the correct version of go as defined in your go.mod
file
and build your go binary (in this case using a Makefile
default target), then upload it to a new Github Release.
# .github/workflows/release.yml
name: Build and release Go Project