From ce35b23487c5a9e2459bd33e4b9442849ee9f614 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 1 Dec 2013 10:30:44 -0800 Subject: Added github-upload.sh. --- github-upload.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 github-upload.sh diff --git a/github-upload.sh b/github-upload.sh new file mode 100644 index 000000000..2a5f6534d --- /dev/null +++ b/github-upload.sh @@ -0,0 +1,18 @@ +#!/usr/bin/bash + +VERSION=$1 +FULLNAME=pandoc-$VERSION +read -s -p "Token (https://github.com/settings/applications): " TOKEN + +curl -H "Authorization: token $TOKEN" \ + -H "Accept: application/vnd.github.manifold-preview" \ + -H "Content-Type: application/x-apple-diskimage" \ + --data-binary @$FULLNAME.dmg \ + "https://uploads.github.com/repos/jgm/pandoc/releases/$FULLNAME/assets?name=$FULLNAME.dmg" + +curl -H "Authorization: token $TOKEN" \ + -H "Accept: application/vnd.github.manifold-preview" \ + -H "Content-Type: application/x-msi" \ + --data-binary @$FULLNAME.msi \ + "https://uploads.github.com/repos/jgm/pandoc/releases/$FULLNAME/assets?name=$FULLNAME.msi" + -- cgit v1.2.3