Translater/.gitlab-ci.yml

33 lines
606 B
YAML
Raw Normal View History

2021-11-10 17:21:52 +01:00
image: gradle:jdk17
2020-07-10 20:50:50 +02:00
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
2021-11-10 17:21:52 +01:00
stages:
- build
- deploy
build_test:
2021-11-10 17:21:52 +01:00
stage: build
script:
2021-11-10 17:21:52 +01:00
- gradle --build-cache build
- cp build/libs/* ./
2021-11-10 17:21:52 +01:00
- mv *-dev.jar dev.zip
- mv *.jar latest.jar
2021-11-10 17:21:52 +01:00
- mv dev.zip latest-dev.jar
2020-07-10 20:50:50 +02:00
artifacts:
paths:
- build/libs
- latest.jar
2021-11-10 17:21:52 +01:00
- latest-dev.jar
deploy:
2021-11-10 17:21:52 +01:00
rules:
- if: $CI_COMMIT_TAG && '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^master/'
stage: deploy
script:
2021-11-10 17:21:52 +01:00
- gradle --build-cache build curseforge modrinth