From b6a9baa2a952ad62aeb74fd045a322670064feb8 Mon Sep 17 00:00:00 2001 From: "Juan J. Martínez" Date: Fri, 9 Jul 2021 08:55:34 +0000 Subject: Only package on release --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c28dd3e..afade77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: openjdk:8 stages: - test - - package + - release cache: paths: @@ -14,11 +14,15 @@ test: - ./mill -D ivy.default.ivy.user.dir=.cache server.test package: - stage: package + stage: release script: - ./mill -D ivy.default.ivy.user.dir=.cache server.assembly artifacts: paths: - out/server/assembly/dest/*.jar + when: on_success + expire_in: never only: - master + rules: + - if: $CI_COMMIT_TAG -- cgit v1.2.3