Split stages for build_test and deploy

This commit is contained in:
JFronny 2021-10-09 12:54:32 +02:00
parent b59c3856eb
commit 2f596bed1b
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
1 changed files with 6 additions and 2 deletions

View File

@ -6,8 +6,12 @@ variables:
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
stages:
- deployTest
- deployReal
build_test:
stage: deploy
stage: deployTest
script:
- gradle --build-cache build publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID
- cp build/libs/* ./
@ -22,7 +26,7 @@ build_test:
- latest-dev.jar
deploy:
stage: deploy
stage: deployReal
when: manual
script:
- gradle --build-cache publish modrinth curseforge -PpublicMaven