Skip to content

Commit 89be854

Browse files
committed
Only deploy and build docs when should_deploy is true
1 parent 51d0760 commit 89be854

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ jobs:
4040
echo "Vault Running"
4141
4242
trap "{ pkill vault && echo 'Vault killed' || echo 'No Vault process was running'; }" EXIT
43-
./mvnw clean deploy -Pdocs,deploy,spring -B -U
43+
if [[ "$SHOULD_DEPLOY" == "true" ]]; then
44+
./mvnw clean deploy -Pdocs,deploy,spring -B -U
45+
else
46+
echo "Will not deploy artifacts"
47+
./mvnw clean install -Pspring -B -U
48+
fi
4449
secrets:
4550
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
4651
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

0 commit comments

Comments
 (0)