#!/bin/sh
# Making this script because we can't accept a password during `lein release` and don't want to add keys IDs to project.clj

lein vcs assert-committed
lein change version leiningen.release/bump-version release
lein marg
git add docs
lein vcs commit
git tag `cat project.clj | grep defproject | cut -d" " -f 3 | tr -d "\""` # I'm actually pretty happy with this
git subtree push --prefix docs origin gh-pages
lein deploy clojars
lein change version leiningen.release/bump-version
lein vcs commit
lein vcs push

#!/bin/sh
# Making this script because we can't accept a password during `lein release` and don't want to add keys IDs to project.clj

lein vcs assert-committed
lein change version leiningen.release/bump-version release
lein marg
git add docs
lein vcs commit
git tag `cat project.clj | grep defproject | cut -d" " -f 3 | tr -d "\""` # I'm actually pretty happy with this
git push origin :gh-pages
git subtree push --prefix docs origin gh-pages
lein deploy clojars
lein change version leiningen.release/bump-version
lein vcs commit
lein vcs push

Remove origin gh-pages before subtree pushing the docs to it.
Remove origin gh-pages before subtree pushing the docs to it.
