Skip to content

Commit

Permalink
Tag and push deploys in git
Browse files Browse the repository at this point in the history
  • Loading branch information
RickMoynihan committed Dec 21, 2021
1 parent 1a14785 commit abcf122
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@
(assoc :lib lib :version version)
(bb/install)))

(defn tag [{:keys [version] :as opts}]
(let [vtag (str "v" version)]
(b/git-process {:git-args ["tag" vtag]})
(b/git-process {:git-args ["push" "origin" vtag]}))
opts)

(defn deploy
"Deploy the JAR to Clojars."
[opts]
(-> opts
(assoc :lib lib :version version)
(tag)
(bb/deploy)))

0 comments on commit abcf122

Please sign in to comment.