[attempt] better ci config

This commit is contained in:
JFronny 2021-10-16 16:22:37 +02:00
parent c78f6d13b3
commit 2b010aa3be
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
1 changed files with 6 additions and 5 deletions

View File

@ -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: