Skip to content

Commit d32e853

Browse files
authored
Merge pull request #458 from threatgrid/release-1.13.21
Release 1.13.21
2 parents 5c48ed6 + d48a1f3 commit d32e853

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,26 @@ lein doc
2828
- Tutorials:
2929
- [Modeling Threat Intelligence in CTIM](doc/tutorials/modeling-threat-intel-ctim.md)
3030

31+
## Releases
32+
33+
```clojure
34+
# snapshot release
35+
lein deploy
36+
37+
# for releases, set project.clj version to x.y.z-SNAPSHOT
38+
# this command then releases as x.y.z and bumps to x.y.(z+1)-SNAPSHOT
39+
# aliased as ./script/release.sh
40+
lein release :patch
41+
42+
# if release fails partway through, use these commands to recover
43+
git tag --delete x.y.z
44+
# you might have a redundant commit "Version x.y.z", undo with:
45+
git reset --hard SHA_BEFORE_FAILED_RELEASE
46+
```
47+
3148
## License
3249

33-
Copyright © 2016-2023 Cisco Systems
50+
Copyright © 2016-2024 Cisco Systems
3451

3552
Distributed under the Eclipse Public License either version 1.0 or (at
3653
your option) any later version.

project.clj

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject threatgrid/ctim "1.3.21-SNAPSHOT"
1+
(defproject threatgrid/ctim "1.3.22-SNAPSHOT"
22
:description "Cisco Threat Intelligence Model"
33
:url "http://github.com/threatgrid/ctim"
44
:license {:name "Eclipse Public License"
@@ -24,13 +24,30 @@
2424
:plugins [[lein-cljsbuild "1.1.7"]
2525
[com.google.guava/guava "20.0"] ;resolve internal conflict in `lein-doo`
2626
[lein-doo "0.1.11" :exclusions [org.clojure/clojure]]
27+
;;uncomment for lein-git-down
2728
#_[reifyhealth/lein-git-down "0.3.5"]]
2829

30+
;;uncomment for lein-git-down
2931
;:middleware [lein-git-down.plugin/inject-properties]
3032
;:repositories [["public-github" {:url "git://github.com"}]
3133
; ["private-github" {:url "git://github.com" :protocol :ssh}]]
3234

33-
35+
:release-tasks [["clean"]
36+
["doc"]
37+
;; this command will fail if `lein doc` generates anything new
38+
;; please commit it and try again
39+
["vcs" "assert-committed"]
40+
["change" "version" "leiningen.release/bump-version" "release"]
41+
;; will fail if project.clj doesn't already have -SNAPSHOT version
42+
["vcs" "commit"]
43+
["vcs" "tag" "--no-sign"]
44+
["deploy" "clojars"]
45+
["change" "version" "leiningen.release/bump-version"]
46+
["vcs" "commit"]
47+
;; fails if no upstream branch is defined
48+
;; if it fails at this point you can complete the release using:
49+
;; git push --tags --set-upstream origin release-x.y.z
50+
["vcs" "push"]]
3451

3552
:aliases {"doc" ^{:doc "Generate documentation"} ["run" "-m" "ctim.document"]
3653
"docs" ^{:doc "Generate documentation"} ["doc"]

script/release.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
set -xe
3+
lein release :patch

0 commit comments

Comments
 (0)