Translater/.gitlab-ci.yml
2021-11-10 17:22:56 +01:00

33 lines
606 B
YAML

image: gradle:jdk17
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
stages:
- build
- deploy
build_test:
stage: build
script:
- gradle --build-cache build
- cp build/libs/* ./
- mv *-dev.jar dev.zip
- mv *.jar latest.jar
- mv dev.zip latest-dev.jar
artifacts:
paths:
- build/libs
- latest.jar
- latest-dev.jar
deploy:
rules:
- if: $CI_COMMIT_TAG && '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^master/'
stage: deploy
script:
- gradle --build-cache build curseforge modrinth