clojure-koans/script/deploy.sh

21 lines
561 B
Bash
Raw Normal View History

#!/bin/sh
mkdir -p releases
zip -r releases/clojure-koans-`date +"%Y-%m-%d_%H-%M"`.zip \
. \
-x "./.git/*" \
-x "releases/*"
echo
echo "Don't forget to upload the zipfile"
echo " to https://github.com/functional-koans/clojure-koans/downloads"
echo `ls -t releases/clojure-koans-*.zip | head -n1`
2012-10-18 23:42:04 +00:00
echo "git push"
echo "git push --tags"
echo
# TODO: use http://developer.github.com/v3/repos/downloads/
# to do the upload automatically
# GET example:
# curl https://api.github.com/repos/functional-koans/clojure-koans/downloads