Commit 534ba6c4 authored by Zandor Smith's avatar Zandor Smith 💻

Create seperate stage for deploying to maven repository.

parent 944f35e6
......@@ -13,7 +13,11 @@ variables:
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
stages:
- build
- deploy
#setup:
# stage: build
# script: gradlew -i setupDecompWorkspace
......@@ -24,9 +28,9 @@ before_script:
# - build
# - .gradle
build:
build-jar:
stage: build
script: ./gradlew -i setupDecompWorkspace && ./gradlew -i build
script: ./gradlew -i setupDecompWorkspace && ./gradlew -i build -Pmaven_pass=$MAVEN_PASS
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
......@@ -34,6 +38,15 @@ build:
- build
- .gradle
deploy-to-maven:
stage: deploy
script: ./gradlew uploadArchives -Pmaven_pass=$MAVEN_PASS
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
#test:
# stage: test
......
Markdown is supported
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