pandoc/tools/github-upload.sh

19 lines
693 B
Bash
Raw Normal View History

#!/bin/bash
2013-12-01 19:30:44 +01:00
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.pkg.zip \
"https://uploads.github.com/repos/jgm/pandoc/releases/$VERSION/assets?name=$FULLNAME.pkg.zip"
2013-12-01 19:30:44 +01:00
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/$VERSION/assets?name=$FULLNAME.msi"
2013-12-01 19:30:44 +01:00