From 4edeb4932c77898d41539c1c5387d75ae3c4b968 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 25 Feb 2022 10:39:37 +0100 Subject: [PATCH] Fixed release pipeline --- .gitlab-ci.yml | 4 ++-- project.clj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3d14787..8352b66 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,11 +96,11 @@ sast: include: - template: Security/SAST.gitlab-ci.yml -upload-clj-prerelease: +upload-clj-release: <<: *clj stage: upload rules: - - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG == null' + - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG != null' script: - lein deploy clojars diff --git a/project.clj b/project.clj index 909703b..d718299 100644 --- a/project.clj +++ b/project.clj @@ -13,8 +13,8 @@ :resource-paths ["src/main/resources"] :repositories [["snapshots" :clojars] ["releases" :clojars]] - :deploy-repositories [["snapshots" :clojars] - ["releases" :clojars]] + :deploy-repositories [["snapshots" {:sign-releases false :url "https://clojars.org/repo"}] + ["releases" {:sign-releases false :url "https://clojars.org/repo"}]] :profiles {:test {:test-paths ["src/test/cljc"] :resource-paths ["src/test/resources"] :dependencies [[dda/data-test "0.1.1"]]}