30 lines
521 B
YAML
30 lines
521 B
YAML
image: gradle:jdk16
|
|
|
|
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/* ./
|
|
- mv *-dev.jar tmp.zip
|
|
- mv *.jar latest.jar
|
|
- mv tmp.zip latest-dev.jar
|
|
artifacts:
|
|
paths:
|
|
- build/libs
|
|
- latest.jar
|
|
- latest-dev.jar
|
|
only:
|
|
- master
|
|
|
|
deploy:
|
|
stage: deploy
|
|
when: manual
|
|
script:
|
|
- gradle --build-cache modrinth curseforge
|