This commit is contained in:
jem 2021-07-09 19:50:17 +02:00
parent 2a196c0b0b
commit 09cd636b1b

View file

@ -38,19 +38,19 @@ test-cljs:
script: script:
- shadow-cljs compile test - shadow-cljs compile test
.upload-clj-prerelease: upload-clj-prerelease:
<<: *clj <<: *clj
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null' - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG == null'
script: script:
- lein deploy clojars - lein deploy clojars
.upload-cljs-prerelease: upload-cljs-prerelease:
<<: *clj <<: *clj
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null' - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG == null'
script: script:
- mv project.clj project-clj.clj && mv project-cljs.clj project.clj - mv project.clj project-clj.clj && mv project-cljs.clj project.clj
- lein deploy clojars - lein deploy clojars
@ -59,7 +59,7 @@ upload-clj-release:
<<: *clj <<: *clj
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_TAG != null' - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG != null'
script: script:
- lein deploy clojars - lein deploy clojars
@ -67,7 +67,7 @@ upload-cljs-release:
<<: *clj <<: *clj
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_TAG != null' - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG != null'
script: script:
- mv project.clj project-clj.clj && mv project-cljs.clj project.clj - mv project.clj project-clj.clj && mv project-cljs.clj project.clj
- lein deploy clojars - lein deploy clojars