lilJudd/.gitlab-ci.yml
limited_dev d6bf2e7bc9 chore: update .gitlab-ci.yml to only run at tag creation
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
2023-06-29 08:57:22 +02:00

38 lines
602 B
YAML

#image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/gradle
image: gradle
stages:
- build
- publish
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- rm -f .gradle/caches/modules-2/modules-2.lock
- rm -fr .gradle/caches/*/plugin-resolution/
cache:
paths:
- .gradle/wrapper
- .gradle/caches
- build
build:
only:
- tags
stage: build
script:
- gradle shadowJar
except:
- tags
publish:
only:
- tags
stage: publish
script:
- gradle publish