LibJF/.gitlab-ci.yml
2021-10-16 16:22:37 +02:00

37 lines
697 B
YAML

image: gradle:jdk16
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 publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID
- cp build/libs/* ./
- rm *-maven.jar *-sources.jar *-sources-dev.jar
- 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:
stage: deploy
rules:
- if: $CI_COMMIT_TAG
script:
- gradle --build-cache build publish modrinth curseforge -PpublicMaven
only:
- master