LibJF/.gitlab-ci.yml

34 lines
703 B
YAML
Raw Normal View History

2021-11-17 12:38:17 +01:00
image: gradle:jdk17
2021-04-11 16:49:59 +02:00
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
2021-10-09 12:54:32 +02:00
stages:
2021-10-16 16:22:37 +02:00
- build
- deploy
2021-10-09 12:54:32 +02:00
2021-04-11 16:49:59 +02:00
build_test:
2021-10-16 16:22:37 +02:00
stage: build
2021-04-11 16:49:59 +02:00
script:
2021-11-28 17:26:25 +01:00
- gradle --build-cache build publish -Ppublic
2021-04-11 16:49:59 +02:00
- cp build/libs/* ./
2021-09-28 20:46:12 +02:00
- rm *-maven.jar *-sources.jar *-sources-dev.jar
- mv *-dev.jar dev.zip
2021-04-11 16:49:59 +02:00
- mv *.jar latest.jar
2021-09-28 20:46:12 +02:00
- mv dev.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:
2021-10-16 16:22:37 +02:00
rules:
2021-10-16 16:29:14 +02:00
- if: $CI_COMMIT_TAG && '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^master/'
stage: deploy
2021-05-15 19:01:08 +02:00
script:
2021-11-28 17:26:25 +01:00
- gradle --build-cache build publish modrinth curseforge -Ppublic -Prelease