Skip to content
Snippets Groups Projects
Commit e7baa698 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

build: Prevent deploy from main branch if version is not SNAPSHOT

parent e12f7fd0
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,8 @@ test_after_vips_common_changes:
deploy-snapshot:
stage: deploy
script:
- export VERSION=$(./mvnw --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*")
- if ! [[ $VERSION =~ .*SNAPSHOT ]]; then exit 0; fi
- ./mvnw $MAVEN_CLI_OPTS $MAVEN_OPTS deploy -DskipTests
tags:
- vips-java
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment