From 2b010aa3bed08aed9ad82bd2c8f6dbf72a3cef62 Mon Sep 17 00:00:00 2001 From: JFronny Date: Sat, 16 Oct 2021 16:22:37 +0200 Subject: [PATCH] [attempt] better ci config --- .gitlab-ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b00eace..a90c353 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,11 +7,11 @@ before_script: - export GRADLE_USER_HOME=`pwd`/.gradle stages: - - deployTest - - deployReal + - build + - deploy build_test: - stage: deployTest + stage: build script: - gradle --build-cache build publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID - cp build/libs/* ./ @@ -26,8 +26,9 @@ build_test: - latest-dev.jar deploy: - stage: deployReal - when: manual + stage: deploy + rules: + - if: $CI_COMMIT_TAG script: - gradle --build-cache build publish modrinth curseforge -PpublicMaven only: