Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
RutledgePaulV committed Sep 30, 2023
1 parent 6d0ed3a commit 47bcc80
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builds/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require [clojure.tools.build.api :as b]))

(def lib 'org.clojars.rutledgepaulv/piped)
(def version "1.0.2")
(def version "0.1.8")
(def class-dir "target/classes")
(def basis (b/create-basis {:project "deps.edn"}))
(def jar-file (format "target/piped.jar" (name lib) version))
Expand Down
20 changes: 20 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

clj -X:build clean
clj -X:build jar
version=$(clj -X:build get-version)

export CLOJARS_USERNAME="op://Personal/clojars.org/username"
export CLOJARS_PASSWORD="op://Personal/clojars.org/token"

op run -- mvn deploy:deploy-file \
-DgroupId="org.clojars.rutledgepaulv" \
-DartifactId="piped" \
-Dversion="$version" \
-Dpackaging="jar" \
-Dfile="target/piped.jar" \
-DrepositoryId="clojars" \
-Durl="https://repo.clojars.org"

git tag "v$version"
git push origin "refs/tags/v$version"
2 changes: 1 addition & 1 deletion test/piped/utils_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
batch (async/<!! return)
stop (System/currentTimeMillis)]
(is (= 3 (count batch)))
(is (< (- stop start) 1000)))))
(is (< (- stop start) 600)))))

0 comments on commit 47bcc80

Please sign in to comment.