Skip to content

Commit 7bd22bf

Browse files
committed
ci-build.sh: skip deploy if NO_DEPLOY flag is set
So that downstream projects (e.g. scijava-common) can set this flag judiciously to control the circumstances of deployment more flexibly.
1 parent 3cc654e commit 7bd22bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci-build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ EOL
133133
else
134134
scmURL=${scmURL%.git}
135135
scmURL=${scmURL%/}
136-
if [ ! "$SIGNING_ASC" -o ! "$GPG_KEY_NAME" -o ! "$GPG_PASSPHRASE" -o ! "$MAVEN_PASS" -o ! "$OSSRH_PASS" ]; then
136+
if [ "$NO_DEPLOY" ]; then
137+
echo "No deploy -- the NO_DEPLOY flag is set"
138+
elif [ ! "$SIGNING_ASC" -o ! "$GPG_KEY_NAME" -o ! "$GPG_PASSPHRASE" -o ! "$MAVEN_PASS" -o ! "$OSSRH_PASS" ]; then
137139
echo "No deploy -- secure environment variables not available"
138140
elif [ "$BUILD_REPOSITORY" -a "$BUILD_REPOSITORY" != "$scmURL" ]; then
139141
echo "No deploy -- repository fork: $BUILD_REPOSITORY != $scmURL"

0 commit comments

Comments
 (0)