mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 17:56:32 +00:00
More changes to github-upload.sh. Still doesn't work, though.
This commit is contained in:
Regular → Executable
+3
-3
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user