going to test unsigned releases

This commit is contained in:
jem 2021-07-09 19:04:43 +02:00
parent 56e93ae392
commit 8a8478583a
4 changed files with 42 additions and 7 deletions

View file

@ -38,7 +38,7 @@ 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:
@ -46,7 +46,7 @@ upload-clj-prerelease:
script: script:
- lein deploy clojars - lein deploy clojars
upload-cljs-prerelease: .upload-cljs-prerelease:
<<: *clj <<: *clj
stage: upload stage: upload
rules: rules:
@ -54,3 +54,21 @@ upload-cljs-prerelease:
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
upload-clj-release:
<<: *clj
stage: upload
rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null'
script:
- lein deploy clojars
upload-cljs-release:
<<: *clj
stage: upload
rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null'
script:
- mv project.clj project-clj.clj && mv project-cljs.clj project.clj
- lein deploy clojars

17
doc/Releasing.md Normal file
View file

@ -0,0 +1,17 @@
# stable release (should be done from master)
```
#adjust [version]
vi project.clj
vi project-cljs.clj
git commit -am "release"
git tag -am "release" [release version no]
git push --follow-tags
# bump version - increase version and add -SNAPSHOT
vi project.clj
vi project-cljs.clj
git commit -am "version bump"
git push
```

View file

@ -1,4 +1,4 @@
(defproject org.domaindrivenarchitecture/c4k-common-cljs "0.2.0-SNAPSHOT" (defproject org.domaindrivenarchitecture/c4k-common-cljs "0.2.2-SNAPSHOT"
:description "Contains predicates and tools for c4k" :description "Contains predicates and tools for c4k"
:url "https://domaindrivenarchitecture.org" :url "https://domaindrivenarchitecture.org"
:license {:name "Apache License, Version 2.0" :license {:name "Apache License, Version 2.0"
@ -13,7 +13,8 @@
:repositories [["snapshots" :clojars] :repositories [["snapshots" :clojars]
["releases" :clojars]] ["releases" :clojars]]
:deploy-repositories [["snapshots" :clojars] :deploy-repositories [["snapshots" :clojars]
["releases" :clojars]] ["releases" {:url "https://clojars.org/repo"
:sign-releases false}]]
:release-tasks [["vcs" "assert-committed"] :release-tasks [["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"] ["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"] ["vcs" "commit"]

View file

@ -1,4 +1,4 @@
(defproject org.domaindrivenarchitecture/c4k-common-clj "0.2.1" (defproject org.domaindrivenarchitecture/c4k-common-clj "0.2.2-SNAPSHOT"
:description "Contains predicates and tools for c4k" :description "Contains predicates and tools for c4k"
:url "https://domaindrivenarchitecture.org" :url "https://domaindrivenarchitecture.org"
:license {:name "Apache License, Version 2.0" :license {:name "Apache License, Version 2.0"
@ -13,8 +13,7 @@
"src/main/clj"] "src/main/clj"]
:resource-paths ["src/main/resources"] :resource-paths ["src/main/resources"]
:repositories [["snapshots" :clojars] :repositories [["snapshots" :clojars]
["releases" {:url "https://clojars.org/repo" ["releases" :clojars]]
:sign-releases false}]]
:deploy-repositories [["snapshots" :clojars] :deploy-repositories [["snapshots" :clojars]
["releases" {:url "https://clojars.org/repo" ["releases" {:url "https://clojars.org/repo"
:sign-releases false}]] :sign-releases false}]]