Skip to content

Commit

Permalink
Add release.sh script
Browse files Browse the repository at this point in the history
Fixes #44 > Workflow: Release notes are now generated automatically
  • Loading branch information
DannyDarwiche committed Jul 22, 2021
1 parent 1da7f0d commit d0347e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .buildscripts/release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ FORMAT_ENTRY_INFO="- \3 (\2)"
git log $(git describe --abbrev=0)..HEAD | \
grep -E "$MATCH_ENTRY_LINE" | \
sed -e "s/$CAPTURE_ENTRY_INFO/$FORMAT_ENTRY_INFO/g" | \
sort
sort
16 changes: 16 additions & 0 deletions .buildscripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
echo Input version number using semantic versioning, e.g. '0.1.2'
read tag

echo Generating release notes...
echo Creating tag...
./.buildscripts/release-notes.sh | git tag -a $tag --file -

echo "Push release tag? [y/n]"
read push
if [[ $push == y* ]]; then
echo "Pushing tag..."
git push origin $tag
else
echo "Skipped pushing tag."
fi
echo "All done!"

0 comments on commit d0347e1

Please sign in to comment.