From d372af807716b7a14d6e3a51ad7565e0074b2382 Mon Sep 17 00:00:00 2001 From: jem Date: Thu, 11 Mar 2021 17:56:47 +0100 Subject: [PATCH] add clj-upload --- .gitlab-ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ce896c..c31e3a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,11 +29,18 @@ stages: - cp target/mastodon-bot.js.sha512 target/npm-build/ - cp README.md target/npm-build/ +.clj-job: &clj + image: clojure:lein-2.7.1-alpine + build_and_test: <<: *cljs stage: build_and_test script: - shadow-cljs compile test + cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - .m2 #activate as soon as https://github.com/thheller/shadow-cljs/issues/843 is implemented .report: @@ -70,7 +77,7 @@ sast: include: - template: Security/SAST.gitlab-ci.yml -upload-prerelease: +upload-cljs-prerelease: <<: *js-upload stage: upload rules: @@ -82,7 +89,15 @@ upload-prerelease: #- npm version prerelease -m "[skip-ci] version bump prerelease version" #- git push -upload-release: +upload-clj-prerelease: + <<: *clj + stage: upload + rules: + - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null' + script: + - lein deploy + +upload-js-release: <<: *js-upload stage: upload rules: