found no way how to ci-release to clojars
This commit is contained in:
parent
eefa69852d
commit
c44a3369a3
4 changed files with 13 additions and 21 deletions
|
@ -14,6 +14,8 @@ services:
|
|||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- node_modules/
|
||||
- .shadow-cljs/
|
||||
- .m2
|
||||
before_script:
|
||||
- npm install
|
||||
|
||||
|
@ -33,6 +35,10 @@ services:
|
|||
|
||||
.clj-uploadjob: &clj-upload
|
||||
image: clojure:lein-2.7.1-alpine
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- .m2
|
||||
before_script:
|
||||
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_PASSWORD}\" }}}}" > ~/.lein/profiles.clj
|
||||
|
||||
|
@ -41,10 +47,6 @@ build_and_test:
|
|||
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:
|
||||
|
@ -108,14 +110,6 @@ upload-cljs-release:
|
|||
- cp package.json target/npm-build/
|
||||
- npm publish ./target/npm-build --access public
|
||||
|
||||
upload-clj-release:
|
||||
<<: *clj-upload
|
||||
stage: upload
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG != null'
|
||||
script:
|
||||
- lein deploy clojars
|
||||
|
||||
build:
|
||||
image: domaindrivenarchitecture/devops-build:latest
|
||||
stage: image
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
vi package.json
|
||||
vi project.clj
|
||||
|
||||
git commit -am "release"
|
||||
git tag -am "release" [release version no]
|
||||
git push --follow-tags
|
||||
lein release
|
||||
|
||||
# bump version - increase version and add -SNAPSHOT
|
||||
vi package.json
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "mastodon-bot",
|
||||
"description": "Bot to publish twitter, tumblr or rss posts to an mastodon account.",
|
||||
"author": "Dmitri Sotnikov",
|
||||
"version": "1.10.8",
|
||||
"version": "1.10.9-SNAPSHOT",
|
||||
"homepage": "https://github.com/yogthos/mastodon-bot",
|
||||
"repository": "https://www.npmjs.com/package/mastodon-bot",
|
||||
"license": "MIT",
|
||||
|
|
10
project.clj
10
project.clj
|
@ -1,4 +1,4 @@
|
|||
(defproject dda/mastodon-bot "1.10.8"
|
||||
(defproject dda/mastodon-bot "1.10.9-SNAPSHOT"
|
||||
:description "Bot to publish twitter, tumblr or rss posts to an mastodon account."
|
||||
:url "https://github.com/yogthos/mastodon-bot"
|
||||
:author "Dmitri Sotnikov"
|
||||
|
@ -7,10 +7,10 @@
|
|||
:source-paths ["src/main/cljc"
|
||||
"src/main/clj"]
|
||||
:resource-paths ["src/main/resources"]
|
||||
:repositories [["snapshots" :clojars]
|
||||
["releases" :clojars]]
|
||||
:deploy-repositories [["releases" {:sign-releases false :url "https://clojars.org"}]
|
||||
["snapshots" {:sign-releases false :url "https://clojars.org"}]]
|
||||
:repositories [["releases" :clojars]
|
||||
["snapshots" :clojars]]
|
||||
:deploy-repositories [["snapshots" :clojars]
|
||||
["releases" :clojars]]
|
||||
:profiles {:test {:test-paths ["src/test/cljc"]
|
||||
:resource-paths ["src/test/resources"]
|
||||
:dependencies []}})
|
||||
|
|
Reference in a new issue