Skip to content

Commit

Permalink
Merge pull request #48 from ImageMarkup/improve-release-command
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna authored Apr 24, 2023
2 parents bb6b147 + ec1fc27 commit cbc9ab8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ show-releases:
echo "previous releases:" && git tag | tail -n3

release VERSION:
git tag {{ VERSION }} && git push origin {{ VERSION }} && gh release create {{ VERSION }} --notes ""
@if [ $(git rev-parse --abbrev-ref HEAD) = "master" ]; then \
git pull origin master; \
git tag {{ VERSION }} && git push origin {{ VERSION }} && gh release create {{ VERSION }} --notes ""; \
else \
echo "Not on master branch"; \
exit 1; \
fi

0 comments on commit cbc9ab8

Please sign in to comment.