Skip to content

Commit

Permalink
Deploy using build-clj
Browse files Browse the repository at this point in the history
  • Loading branch information
miikka committed Sep 4, 2021
1 parent 6450c30 commit 925f921
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ bin/kaocha
bin/kaocha --watch
```

Deployment:

```sh
export CLOJARS_USERNAME=...
export CLOJARS_PASSWORD=...

clj -T:build jar
clj -T:build deploy
```

## License

Copyright 2021 Miikka Koskinen. Distributed under the terms of ISC license, see `LICENSE`.
6 changes: 5 additions & 1 deletion build.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns build
(:require [clojure.tools.build.api :as b]))
(:require [clojure.tools.build.api :as b]
[org.corfield.build :as bb]))

(def lib 'miikka/split-token)
(def version (format "0.1.%s" (b/git-count-revs nil)))
Expand All @@ -21,3 +22,6 @@
:target-dir class-dir})
(b/jar {:class-dir class-dir
:jar-file jar-file}))

(defn deploy [_]
(bb/deploy {:lib lib, :version version}))
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{:deps {buddy/buddy-core {:mvn/version "1.10.1"}}
:aliases {:test {:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.0.887"}}}
:build {:extra-deps {io.github.clojure/tools.build {:git/tag "v0.2.0" :git/sha "7cbb94b"}}
:build {:extra-deps {io.github.seancorfield/build-clj {:git/tag "v0.1.2" :git/sha "0719a09"}}
:ns-default build}}}

0 comments on commit 925f921

Please sign in to comment.