LibJF/.gitlab-ci.yml

30 lines
528 B
YAML
Raw Normal View History

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-04-11 16:49:59 +02:00
only:
2021-05-15 17:40:37 +02:00
- master
2021-05-15 19:01:08 +02:00
deploy:
stage: deploy
when: manual
script:
- gradle --build-cache publishModrinth curseforge