From dc818bfa5688babcd0fd2061c46cd8bb8c414d8f Mon Sep 17 00:00:00 2001 From: Michael Grupp Date: Thu, 9 May 2024 12:41:34 +0200 Subject: [PATCH] Do a hatch clean in release.sh --- .ci/release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/release.sh b/.ci/release.sh index 548a19f..a140c9c 100755 --- a/.ci/release.sh +++ b/.ci/release.sh @@ -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