diff options
author | Juan J. MartÃnez <jjm@usebox.net> | 2021-07-09 08:55:34 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-07-22 19:49:53 +0100 |
commit | b6a9baa2a952ad62aeb74fd045a322670064feb8 (patch) | |
tree | 47145c46d82cf78b52f9ad30366b4b2e1e40236f /.gitlab-ci.yml | |
parent | fc7d06521b9c39bf209b8827be7671197761a28a (diff) | |
download | spacebeans-b6a9baa2a952ad62aeb74fd045a322670064feb8.tar.gz spacebeans-b6a9baa2a952ad62aeb74fd045a322670064feb8.zip |
Only package on release
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files 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 |