This gist provides guidence to publish release using goreleaser for OSS golang projects that either not offer desired packages by any means or not release as frequent as desired.
- Fork the golang repo to your own repository
- Clone the repo
- Add the
.goreleaser.yamlfile. You can do this throughgoreleaser init - Commit the change and tag the commit with a version:
git add . && git commit -m "..." && git tag -a v... -m "..." - Push the commit and tag to the remote branch:
git push origin main && git push origin v... - Set up a fine-grained token. Grant read and write permission to codebase/content. Note the token.
- Your profile -> Setting -> Developer Settings -> Personal Acess Token -> Generate new token
- In terminal, run
export GITHUB_TOKEN="..." - Then run
goreleaser release