Split stages for build_test and deploy
This commit is contained in:
parent
b59c3856eb
commit
2f596bed1b
@ -6,8 +6,12 @@ variables:
|
|||||||
before_script:
|
before_script:
|
||||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- deployTest
|
||||||
|
- deployReal
|
||||||
|
|
||||||
build_test:
|
build_test:
|
||||||
stage: deploy
|
stage: deployTest
|
||||||
script:
|
script:
|
||||||
- gradle --build-cache build publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID
|
- gradle --build-cache build publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID
|
||||||
- cp build/libs/* ./
|
- cp build/libs/* ./
|
||||||
@ -22,7 +26,7 @@ build_test:
|
|||||||
- latest-dev.jar
|
- latest-dev.jar
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deployReal
|
||||||
when: manual
|
when: manual
|
||||||
script:
|
script:
|
||||||
- gradle --build-cache publish modrinth curseforge -PpublicMaven
|
- gradle --build-cache publish modrinth curseforge -PpublicMaven
|
||||||
|
Loading…
Reference in New Issue
Block a user