Skip to content

Commit

Permalink
Add helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
DervexDev committed Mar 28, 2024
1 parent 496d180 commit d53e293
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions scripts/release
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

0 comments on commit d53e293

Please sign in to comment.