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:
|
|
|
|
- gradle --build-cache assemble
|
|
|
|
- cp build/libs/* ./
|
2021-05-15 17:40:37 +02:00
|
|
|
- mv *-dev.jar tmp.zip
|
2021-04-11 16:49:59 +02:00
|
|
|
- mv *.jar latest.jar
|
2021-05-15 17:40:37 +02:00
|
|
|
- mv tmp.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-09-27 20:55:48 +02:00
|
|
|
- gradle --build-cache modrinth curseforge
|
2021-09-27 21:12:46 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
gradle-publish:
|
|
|
|
script:
|
|
|
|
- gradle publish
|