From 4270971f1c8a2257559ef825448d94c650ea53fa Mon Sep 17 00:00:00 2001 From: James Ellis Date: Mon, 11 Jul 2022 09:00:29 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Remove=20commented=20out=20testi?= =?UTF-8?q?ng=20lines=20in=20release=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release.sh b/release.sh index d05f49f..602f15d 100755 --- a/release.sh +++ b/release.sh @@ -47,13 +47,13 @@ if [ $branch != 'main' ] then echo "The 'main' must be the current branch to make a release." echo "You are currently on: $branch" - #exit 1 + exit 1 fi if [ -n "$(git status --porcelain)" ] then echo "There are uncommited changes. Please commit and create a pull request or stash them."; - #exit 1 + exit 1 fi # check that the required maven central signing and auth vars are set @@ -133,12 +133,12 @@ sed -i '' "/^VERSION_CLASSIFIER /s/=.*$/= $newVersionClassifier/" ./segment-appc # commit the version change. git commit -am "🔖 Update version to $newVersion" -#git push +git push # gh release will make both the tag and the release itself. -#gh release create $newVersion -F $tempFile -t $newVersion +gh release create $newVersion -F $tempFile -t $newVersion # remove the tempfile. rm $tempFile # publish to Maven Central -#gradle segment-appcues:publishReleasePublicationToOSSRHRepository +gradle segment-appcues:publishReleasePublicationToOSSRHRepository