Quickly Create Github Release via Cli
I’ve been trying to improve modularization with Terraform. Using Terraform Cloud, you get a private module repository. The modules are linked to tags in git.
I’ve wanted additionally to specifically create releases for the versions in addition to the tags, to make tracking of usable versions a little cleaner.
There are several ways to do this, including using the GitHub API, npm modules, and more. I wanted a simple CLI tool to do this and ran across this great Go utility that worked seamlessly for me.
I’ve used the Hub cli but the create release syntax never really worked for me.
Github-release is a simple golang cli that worked great for me. Note that this is a fork. This fork is more up to date than the original.
With go installed just run this to get it installed and available in
To simplify GitHub access, ensure you set an environment variable for your user called GITHUB_TOKEN.
With PowerShell you can do it quickly like this (you might need to close and reopen vscode/terminal for this to be recognized)
To use this, you can chain together some steps and see how it can save you time on creating a GitHub release.
This helped me get moving faster ⚡ on using Github releases without the tedious work to create. If this helped you or have any feedback, drop a comment below and let me know! The comments are powered by Utterances which will open a Github issue to discuss further. 👍
(No webmentions yet.)