2020-07-10 20:50:50 +02:00
|
|
|
image: gradle:alpine
|
|
|
|
|
|
|
|
variables:
|
|
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
|
|
|
2021-02-22 08:55:23 +01:00
|
|
|
build_test:
|
2020-07-10 20:50:50 +02:00
|
|
|
stage: deploy
|
2021-02-22 08:55:23 +01:00
|
|
|
script:
|
|
|
|
- gradle --build-cache assemble
|
|
|
|
- cp build/libs/* ./
|
|
|
|
- rm *-dev.jar
|
|
|
|
- mv *.jar latest.jar
|
2020-07-10 20:50:50 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/libs
|
2021-02-22 08:55:23 +01:00
|
|
|
- latest.jar
|
2020-07-10 20:50:50 +02:00
|
|
|
only:
|
|
|
|
- master
|
2021-02-22 08:55:23 +01:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
when: manual
|
|
|
|
script:
|
|
|
|
- gradle --build-cache publishModrinth
|
|
|
|
- gradle --build-cache curseforge
|