2020-08-28 18:18:17 +02:00
|
|
|
image: gradle:alpine
|
|
|
|
|
|
|
|
variables:
|
|
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
|
|
|
2020-12-12 17:53:04 +01:00
|
|
|
build_test:
|
2020-08-28 18:18:17 +02:00
|
|
|
stage: deploy
|
2020-12-12 17:53:04 +01:00
|
|
|
script:
|
|
|
|
- gradle --build-cache assemble
|
|
|
|
- cp build/libs/* ./
|
|
|
|
- rm *-dev.jar
|
|
|
|
- mv *.jar latest.jar
|
2020-08-28 18:18:17 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/libs
|
2020-12-12 17:53:04 +01:00
|
|
|
- latest.jar
|
2020-08-28 18:18:17 +02:00
|
|
|
only:
|
|
|
|
- master
|
2020-12-12 17:53:04 +01:00
|
|
|
|
|
|
|
modrinth:
|
|
|
|
stage: deploy
|
|
|
|
when: manual
|
|
|
|
script: gradle --build-cache publishModrinth
|