Skip to content

Commit

Permalink
Do a hatch clean in release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp committed May 9, 2024
1 parent e292f4a commit dc818bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ if [ -n "$(git fetch --dry-run)" ]; then
exit 1
fi

hatch version "$NEW_VERSION"

PREVIOUS_VERSION="$(git describe --tags --abbrev=0)"
echo "Current version: $PREVIOUS_VERSION"
read -p "Enter new version: " NEW_VERSION
read -p "Enter tag message: " TAG_MESSAGE

hatch version "$NEW_VERSION"

git commit -aem "Bump version to $NEW_VERSION"
git tag -a "$NEW_VERSION" -m "Release $NEW_VERSION: $TAG_MESSAGE"
git push
git push --tags

hatch clean
hatch build
hatch publish

0 comments on commit dc818bf

Please sign in to comment.