Added github-upload.sh.
This commit is contained in:
parent
1f6238f3ba
commit
ce35b23487
1 changed files with 18 additions and 0 deletions
18
github-upload.sh
Normal file
18
github-upload.sh
Normal file
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue