git.iko.soy/typeable/pandoc
on master help sign in
Added github-upload.sh.
commitce35b23487c5a9e2459bd33e4b9442849ee9f614 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 1 Dec 2013, 10:30 (13 years ago) parent1f6238f
1 file changed+18
github-upload.sh+18
github-upload.shnew file+18
@@ -0,0 +1,18 @@
1+#!/usr/bin/bash
2+
3+VERSION=$1
4+FULLNAME=pandoc-$VERSION
5+read -s -p "Token (https://github.com/settings/applications): " TOKEN
6+
7+curl -H "Authorization: token $TOKEN" \
8+ -H "Accept: application/vnd.github.manifold-preview" \
9+ -H "Content-Type: application/x-apple-diskimage" \
10+ --data-binary @$FULLNAME.dmg \
11+ "https://uploads.github.com/repos/jgm/pandoc/releases/$FULLNAME/assets?name=$FULLNAME.dmg"
12+
13+curl -H "Authorization: token $TOKEN" \
14+ -H "Accept: application/vnd.github.manifold-preview" \
15+ -H "Content-Type: application/x-msi" \
16+ --data-binary @$FULLNAME.msi \
17+ "https://uploads.github.com/repos/jgm/pandoc/releases/$FULLNAME/assets?name=$FULLNAME.msi"
18+