From abcf1227b27e8c1c1d5751d9f3ba8fd86793cb44 Mon Sep 17 00:00:00 2001 From: Rick Moynihan Date: Tue, 21 Dec 2021 17:19:07 +0000 Subject: [PATCH] Tag and push deploys in git --- build.clj | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.clj b/build.clj index ca3bbf5..b1ab2c9 100644 --- a/build.clj +++ b/build.clj @@ -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)))