https://github.com/phx/gitrelease
Create an official GitHub release of your code from the command line
https://github.com/phx/gitrelease
Last synced: about 1 year ago
JSON representation
Create an official GitHub release of your code from the command line
- Host: GitHub
- URL: https://github.com/phx/gitrelease
- Owner: phx
- License: mit
- Created: 2020-04-16T21:44:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T14:50:23.000Z (about 6 years ago)
- Last Synced: 2025-01-29T10:33:57.767Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitrelease
I can't take credit for the majority of this code.
I took the code from 2 separate authors that I found who posted solutions in a forum.
If you don't want to set the token for each project, you can `export GITHUB_TOKEN=[YOUR TOKEN]`.
## Usage:
- Copy `gitrelease` to somewhere in your `$PATH`
- `gitrelease [VERSION NUMBER] `
```
##############################################################################
# Settings > Developer Settings > Personal access tokens > Generate new token
# git config --global github.token [YOUR_TOKEN]
# USAGE: ./gitrelease [VERSION_TAG] [RELEASE DESCRIPTION]
##############################################################################
```
---
I also made this easier for MacOS Homebrew developers, which was my primary reason for creating it.
If you `export CASK=1`, then the last few lines will be formatted perfectly to copy/paste into a Homebrew Cask formula.
Otherwise, the last few lines will be perfectly formatted to copy/paste into a regular Homebrew formula.
That being said, this script is not just for MacOS.
It's for anyone with who uses `bash` and `git` and wants to publish a GitHub release from the command line.