-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
bold=$(tput bold) | ||
normal=$(tput sgr0) | ||
|
||
current=$(curl https://api.github.com/repos/argon-rbx/argon/releases/latest -s | grep -i "tag_name" | awk -F '"' '{print $4}') | ||
|
||
echo $current | tr -d '\n' | pbcopy 2> /dev/null | ||
|
||
echo Current Argon version is: ${bold}$current${normal} | ||
echo | ||
|
||
read -p "Enter a new version to release: " version | ||
echo | ||
|
||
read -p "Is this version correct: ${bold}$version${normal} [y/n] " confirm | ||
echo | ||
|
||
if [ "$confirm" != "y" ]; then | ||
echo Aborted! | ||
exit 1 | ||
fi | ||
|
||
echo Releasing version ${bold}$version${normal} ... | ||
|
||
git tag $version && git push --tags |