LibJF/.gitlab-ci.yml

34 lines
577 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-05-15 19:01:08 +02:00
deploy:
stage: deploy
when: manual
script:
2021-09-27 21:18:55 +02:00
- gradle --build-cache publish modrinth curseforge
2021-09-27 21:12:46 +02:00
only:
- master
gradle-publish:
script:
- gradle publish