Skip to content

Commit 1b37a1c

Browse files
authored
Remove test from create release script. (#1172)
Signed-off-by: Artur Souza <[email protected]>
1 parent c21e283 commit 1b37a1c

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/scripts/create-release.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,26 @@ fi
8484
echo "$RELEASE_BRANCH branch is ready."
8585

8686
if [ `git rev-parse --verify $RELEASE_TAG 2>/dev/null` ]; then
87-
echo "$RELEASE_TAG tag already exists, aborting ..."
88-
exit 2
89-
fi
90-
91-
${script_dir}/update_sdk_version.sh $REL_VERSION
92-
git commit -s -m "Release $REL_VERSION" -a
93-
if [ "$VARIANT" = "" ]; then
94-
echo "Generating docs ..."
95-
${script_dir}/update_docs.sh $REL_VERSION
96-
git commit -s -m "Generate updated javadocs for $REL_VERSION" -a
97-
fi
98-
git push origin $RELEASE_BRANCH
87+
echo "$RELEASE_TAG tag already exists, checking it out ..."
88+
git checkout $RELEASE_TAG
89+
else
90+
${script_dir}/update_sdk_version.sh $REL_VERSION
91+
git commit -s -m "Release $REL_VERSION" -a
92+
if [ "$VARIANT" = "" ]; then
93+
echo "Generating docs ..."
94+
${script_dir}/update_docs.sh $REL_VERSION
95+
git commit -s -m "Generate updated javadocs for $REL_VERSION" -a
96+
fi
97+
git push origin $RELEASE_BRANCH
9998

100-
echo "Tagging $RELEASE_TAG ..."
101-
git tag $RELEASE_TAG
102-
echo "$RELEASE_TAG is tagged."
99+
echo "Tagging $RELEASE_TAG ..."
100+
git tag $RELEASE_TAG
101+
echo "$RELEASE_TAG is tagged."
103102

104-
echo "Pushing $RELEASE_TAG tag ..."
105-
git push origin $RELEASE_TAG
106-
echo "$RELEASE_TAG tag is pushed."
103+
echo "Pushing $RELEASE_TAG tag ..."
104+
git push origin $RELEASE_TAG
105+
echo "$RELEASE_TAG tag is pushed."
106+
fi
107107

108108
if [ "$VARIANT" = "" ]; then
109109
git clean -xdf

.github/scripts/update_docs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ rm -f daprdocs/content/en/java-sdk-docs/_index.mdbak || echo
2727
rm -f daprdocs/content/en/java-sdk-docs/spring-boot/_index.md/_index.mdbak || echo
2828

2929
rm -rf docs
30-
./mvnw -Dmaven.test.skip=false -Djacoco.skip=true clean install
31-
./mvnw site-deploy
30+
./mvnw -Dmaven.test.skip=true -Djacoco.skip=true clean install
31+
./mvnw -Dmaven.test.skip=true -Djacoco.skip=true site-deploy

0 commit comments

Comments
 (0)