Skip to content

Instantly share code, notes, and snippets.

@drio
Last active Jul 28, 2022
Embed
What would you like to do?
go-builds-in-github-actions

Go builds in github actions

  1. Create the .github/workflows/release_build.yml. Pay attention to line 30, you may want to adjust that for your project.
  2. In the github UI, add a new token in Settings > Developer Settings > Personal access tokens. Save the token.
  3. In your project settings, under Secrets > Actions add a secret name with the value of the token that you just created.
  4. Use a script to automate the release process. Modify the script to match your project settings. The script I link above expects a variable help that encodes the semantic version of the tool. The script updates that and pushes the changes to github.

References

  1. https://dev.to/koddr/github-action-for-release-your-go-projects-as-fast-and-easily-as-possible-20a2
  2. https://github.com/drio/go-tls-proxy
  3. https://github.com/drio/ksak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment