Skip to content

Commit

Permalink
Improving release script
Browse files Browse the repository at this point in the history
  • Loading branch information
newtovaux authored Nov 7, 2023
1 parent 9a259a2 commit ee7b180
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ fi

echo 'PlatformInfo Release'
echo
echo 'Do not create the tag beforehand - this gh release create does that for you!'
echo
echo 'Enter the version number (e.g. 1.2.3): '
read version
echo "You entered '$version', is that correct? [Yn]"
read confirm1
if [ "$confirm1" == "Y" ]; then
echo "Thanks for your confirmation."

if gh release list | grep --quiet "$version"; then
echo 'This tag has already been used. Exiting'
exit -1
fi

echo "Generating notes file..."
echo "Release $version" > notes.txt
echo "See: https://github.com/newtovaux/platforminfo/blob/main/CHANGELOG.md" >> notes.txt
Expand Down

0 comments on commit ee7b180

Please sign in to comment.