Skip to content

Commit 377dff9

Browse files
committed
Also update Clerk version in book.clj on publish
1 parent 5a7cc59 commit 377dff9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bb/tasks.clj

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
(str "{io.github.nextjournal/clerk {:mvn/version " (pr-str (shared/version)) "}}"))
4141
(spit "README.md")))
4242

43+
(defn update-book []
44+
(->> (str/replace (slurp "book.clj")
45+
(re-pattern "\\{io.github.nextjournal/clerk \\{:mvn/version \".+\"\\}\\}")
46+
(str "{io.github.nextjournal/clerk {:mvn/version " (pr-str (shared/version)) "}}"))
47+
(spit "book.clj")))
48+
4349
(defn tag []
4450
(let [tag (str "v" (shared/version))]
4551
(shell "git tag" tag)))
@@ -48,6 +54,7 @@
4854
(update-meta)
4955
(update-changelog)
5056
(update-readme)
57+
(update-book)
5158
(shell "git add"
5259
"resources/META-INF"
5360
"README.md"

0 commit comments

Comments
 (0)