add clj-upload

This commit is contained in:
jem 2021-03-11 17:56:47 +01:00
parent 13f41eeff3
commit d372af8077

View file

@ -29,11 +29,18 @@ stages:
- cp target/mastodon-bot.js.sha512 target/npm-build/ - cp target/mastodon-bot.js.sha512 target/npm-build/
- cp README.md target/npm-build/ - cp README.md target/npm-build/
.clj-job: &clj
image: clojure:lein-2.7.1-alpine
build_and_test: build_and_test:
<<: *cljs <<: *cljs
stage: build_and_test stage: build_and_test
script: script:
- shadow-cljs compile test - 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 #activate as soon as https://github.com/thheller/shadow-cljs/issues/843 is implemented
.report: .report:
@ -70,7 +77,7 @@ sast:
include: include:
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
upload-prerelease: upload-cljs-prerelease:
<<: *js-upload <<: *js-upload
stage: upload stage: upload
rules: rules:
@ -82,7 +89,15 @@ upload-prerelease:
#- npm version prerelease -m "[skip-ci] version bump prerelease version" #- npm version prerelease -m "[skip-ci] version bump prerelease version"
#- git push #- 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 <<: *js-upload
stage: upload stage: upload
rules: rules: