[attempt] better ci config
This commit is contained in:
parent
c78f6d13b3
commit
2b010aa3be
|
@ -7,11 +7,11 @@ before_script:
|
|||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||
|
||||
stages:
|
||||
- deployTest
|
||||
- deployReal
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build_test:
|
||||
stage: deployTest
|
||||
stage: build
|
||||
script:
|
||||
- gradle --build-cache build publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID
|
||||
- cp build/libs/* ./
|
||||
|
@ -26,8 +26,9 @@ build_test:
|
|||
- latest-dev.jar
|
||||
|
||||
deploy:
|
||||
stage: deployReal
|
||||
when: manual
|
||||
stage: deploy
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- gradle --build-cache build publish modrinth curseforge -PpublicMaven
|
||||
only:
|
||||
|
|
Loading…
Reference in New Issue