More changes to github-upload.sh. Still doesn't work, though.

This commit is contained in:
John MacFarlane 2013-12-07 12:59:08 -08:00
parent 06d1ec828a
commit 4f64a4bc3b

6
github-upload.sh Normal file → Executable file
View file

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/bin/bash
VERSION=$1
FULLNAME=pandoc-$VERSION
@ -8,11 +8,11 @@ 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"
"https://uploads.github.com/repos/jgm/pandoc/releases/$VERSION/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"
"https://uploads.github.com/repos/jgm/pandoc/releases/$VERSION/assets?name=$FULLNAME.msi"