More changes to github-upload.sh. Still doesn't work, though.
This commit is contained in:
parent
06d1ec828a
commit
4f64a4bc3b
1 changed files with 3 additions and 3 deletions
6
github-upload.sh
Normal file → Executable file
6
github-upload.sh
Normal file → Executable 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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue