Skip to content

Instantly share code, notes, and snippets.

@drio
Last active July 28, 2022 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drio/2ae119cf8086f70c6889bb5e8a45235c to your computer and use it in GitHub Desktop.
Save drio/2ae119cf8086f70c6889bb5e8a45235c to your computer and use it in GitHub Desktop.
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