Skip to content

Commit

Permalink
release stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jun 25, 2022
1 parent 27e9e05 commit 35f8a64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Works in [clojure JVM](#clojure) and [babashka](#babashka).
To your `deps.edn` add an alias:

``` clojure
:serve {:deps {org.babashka/http-server {:mvn/version "0.1.5"}}
:serve {:deps {org.babashka/http-server {:mvn/version "0.1.6"}}
:main-opts ["-m" "babashka.http-server"]
:exec-fn babashka.http-server/exec}
```
Expand All @@ -33,7 +33,7 @@ clj -X:serve :port 1339 :dir '"."'
Or install as a tool:

``` clojure
$ clj -Ttools install io.github.babashka/http-server '{:git/tag "v0.1.5"}' :as serve
$ clj -Ttools install io.github.babashka/http-server '{:git/tag "v0.1.6"}' :as serve
$ clj -Tserve exec
```

Expand All @@ -46,7 +46,7 @@ In a script, e.g. `/usr/local/bin/http-server`:

(require '[babashka.deps :as deps])
(deps/add-deps
'{:deps {org.babashka/http-server {:mvn/version "0.1.5"}}})
'{:deps {org.babashka/http-server {:mvn/version "0.1.6"}}})

(require '[babashka.http-server :as http-server])

Expand All @@ -62,7 +62,7 @@ $ http-server --port 8888 --dir resources/public
In `bb.edn` [tasks](https://book.babashka.org/#tasks):

``` clojure
{:deps {org.babashka/http-server {:mvn/version "0.1.5"}
{:deps {org.babashka/http-server {:mvn/version "0.1.6"}
org.babashka/cli {:mvn/version "0.2.23"}}
:tasks
{:requires ([babashka.cli :as cli])
Expand Down
14 changes: 3 additions & 11 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,9 @@
(ghr/overwrite-asset {:org "babashka"
:repo "http-server"
:file "http-server.jar"
:draft true
:draft false
:tag (str "v" (utils/format-version))}))}

complete-release {:doc "Mark release as completed"
:requires ([borkdude.gh-release-artifact :as ghr])
:task (ghr/create-release {:org "babashka"
:repo "http-server"
:draft false
:tag (str "v" (utils/format-version))})}

tag {:doc "Create and push tag"
:task (do (shell "git tag" (str "v" (utils/format-version)))
(shell "git push --tags"))}
Expand All @@ -64,9 +57,8 @@
(when-not (:skip-bump cmd-line-opts)
(run 'bump-release))
(println "Uploading jar")
(run 'upload-jar)
(run 'tag)
(clojure "-T:build deploy")
(run 'complete-release))}
(run 'upload-jar)
(clojure "-T:build deploy"))}

}}
2 changes: 1 addition & 1 deletion version.edn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{:major 0, :minor 1, :release 5}
{:major 0, :minor 1, :release 6}

0 comments on commit 35f8a64

Please sign in to comment.