2021-05-15 16:44:42 +02:00
|
|
|
image: gradle:jdk16
|
2021-04-11 16:49:59 +02:00
|
|
|
|
|
|
|
variables:
|
|
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
|
|
|
|
|
|
build_test:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2021-10-03 12:58:01 +02:00
|
|
|
- gradle --build-cache build publish -PpublicMaven
|
2021-04-11 16:49:59 +02:00
|
|
|
- cp build/libs/* ./
|
2021-09-28 20:46:12 +02:00
|
|
|
- rm *-maven.jar *-sources.jar *-sources-dev.jar
|
|
|
|
- mv *-dev.jar dev.zip
|
2021-04-11 16:49:59 +02:00
|
|
|
- mv *.jar latest.jar
|
2021-09-28 20:46:12 +02:00
|
|
|
- mv dev.zip latest-dev.jar
|
2021-04-11 16:49:59 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/libs
|
|
|
|
- latest.jar
|
2021-05-15 17:40:37 +02:00
|
|
|
- latest-dev.jar
|
2021-05-15 19:01:08 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
when: manual
|
|
|
|
script:
|
2021-10-03 12:58:01 +02:00
|
|
|
- gradle --build-cache publish modrinth curseforge -Ptype=release -PpublicMaven
|
2021-09-27 21:12:46 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|