Skip to content

Commit

Permalink
👷 chore(release): print GitHub tag URL at the end of release
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Jan 15, 2024
1 parent fabffb0 commit de7e30d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,17 @@ echo

echo "Release $VERSION_TAG is ready. Don't forget to push the changes and the tag:"
echo "git push && git push --tags"
echo
echo "Once that's done, you should see your tag on GitHub:"

remote_url=$(git remote get-url origin)

# Check if the URL is in SSH format (git@).
if [[ "$remote_url" == [email protected]:* ]]; then
https_url="https://github.com/${remote_url#git@github.com:}"
https_url="${https_url%.git}"
else
https_url="${remote_url%.git}"
fi

echo "${https_url}/tags"

0 comments on commit de7e30d

Please sign in to comment.