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