Modify deploy stage in gitlab-ci
@@ -24,7 +24,7 @@ build:
stage: build
script:
- echo "$MAVEN_CREDENTIALS" > /root/.m2/settings.xml
- - mvn clean package javadoc:aggregate -DskipTests
+ - mvn clean package javadoc:aggregate gpg:sign -DskipTests
- export MVN_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[')
- "echo $MVN_VERSION >> ./target/mvn_version"
artifacts:
@@ -77,6 +77,7 @@ deploy:
- mvn deploy -DskipTests
only:
- dev
+ - master
artifacts:
paths:
- ./**/*.jar
