Skip to content
Snippets Groups Projects
Commit babf7234 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

Create seperate stage for deploying to maven repository.

parent 3924b432
No related branches found
No related tags found
1 merge request!3Moving setup and deploy commands to seperate stages.
......@@ -14,9 +14,23 @@ variables:
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
build:
stages:
- build
- deploy
build-jar:
stage: build
script: ./gradlew -i setupDecompWorkspace && ./gradlew build -Pmaven_pass=$MAVEN_PASS && ./gradlew uploadArchives -Pmaven_pass=$MAVEN_PASS
script: ./gradlew -i setupDecompWorkspace && ./gradlew build -Pmaven_pass=$MAVEN_PASS
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
deploy-to-maven:
stage: deploy
script: ./gradlew uploadArchives -Pmaven_pass=$MAVEN_PASS
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment