Commit 23a5da6a authored by Matija Obreza's avatar Matija Obreza
Browse files

Only tags "application-blocks-*" published on central maven repository, master is snapshot

parent cb9f7112
...@@ -9,9 +9,9 @@ run tests in branches: ...@@ -9,9 +9,9 @@ run tests in branches:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B - MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B
except: except:
- master - master
- tags - /^application\-blocks\-/
publish artifacts: publish snapshot artifacts:
stage: deploy stage: deploy
image: maven:3-jdk-8 image: maven:3-jdk-8
script: script:
...@@ -20,4 +20,14 @@ publish artifacts: ...@@ -20,4 +20,14 @@ publish artifacts:
- mvn clean deploy --settings .ci-maven-settings.xml -B -U - mvn clean deploy --settings .ci-maven-settings.xml -B -U
only: only:
- master - master
- tags
publish artifacts on central:
stage: deploy
image: maven:3-jdk-8
- echo "Using username ${GLIS_USERNAME} for authentication against"
- echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
- gpg --list-keys
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn -P release clean deploy --settings .ci-maven-settings.xml -B -U
- /^application\-blocks\-/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment