All you need to do is add one
release.yml file to your Github repository. I am flabbergasted with the UX of Github Actions! There are many templates you can use, but I decided to use the following one:
goos: [linux, darwin, windows]
token, ssh-key, ref (branch/tag), and others
ldflagssettings into the binary build. Flag
-somits the symbol table and debug information, and
-wstrips the DWARF symbol table from the resulting binary
tbb-1.8.6-alpha-linux-amd64.tar.gzand packs the
Create a new
.github/workflows directory and paste the script there - adjust to your needs. You can also skip some steps like running the tests if you don't have them.
You click the Draft a new release from Github UI, give it a tag, name, described the changes and publish. The Github Actions workflow will take care of testing, building and attaching binaries to it.
You will find your generated binaries attached to the release when the build job finishes. Your Go program is ready to be downloaded by your users.
Hi, I am writing an eBook on how to build a peer-to-peer system in Go from scratch!
Follow how the main protagonist Andrej, a web developer by day and a bartender by night, learns real-world use of blockchain through the growth of his new business venture: "The Blockchain Bar".