summaryrefslogtreecommitdiffstats
path: root/Setup/Publish-GitHub.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Setup/Publish-GitHub.sh')
-rw-r--r--Setup/Publish-GitHub.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Setup/Publish-GitHub.sh b/Setup/Publish-GitHub.sh
index 75b87f0..c67f8f6 100644
--- a/Setup/Publish-GitHub.sh
+++ b/Setup/Publish-GitHub.sh
@@ -25,7 +25,7 @@ if [[ "$BRANCH" == "master" ]]; then
for FILE_EXTENSION in "exe" "zip"; do
if [ ! -e ../Releases/$FILE_PREFIX.$FILE_EXTENSION ]; then
- echo "Executables cannot be found ($FILE_PREFIX.$FILE_EXTENSION)." >&2
+ echo "Executables cannot be found." >&2
exit 1
fi
done
@@ -37,7 +37,7 @@ if [[ "$BRANCH" == "master" ]]; then
git push origin :refs/tags/latest 2> /dev/null
- ASSET_UPLOAD_URL=`curl -s -H "Authorization: token $TOKEN" --data "{\"tag_name\": \"latest\", \"target_commitish\": \"master\", \"name\": \"Most recent build\", \"body\": \"This is the most recent automated build.\n\nFor the latest stable release go to https://www.medo64.com/$REPOSITORY/.\", \"draft\": false, \"prerelease\": true}" -X POST https://api.github.com/repos/$OWNER/$REPOSITORY/releases | grep "\"upload_url\"" | cut -d\" -f4 | cut -d{ -f1`
+ ASSET_UPLOAD_URL=`curl -s -H "Authorization: token $TOKEN" --data "{\"tag_name\": \"latest\", \"target_commitish\": \"master\", \"name\": \"Most recent build\", \"body\": \"This is the most recent automated build (#$VERSION_HASH, revision $VERSION_NUMBER).\n\nFor the latest stable release go to https://www.medo64.com/$REPOSITORY/.\", \"draft\": false, \"prerelease\": true}" -X POST https://api.github.com/repos/$OWNER/$REPOSITORY/releases | grep "\"upload_url\"" | cut -d\" -f4 | cut -d{ -f1`
for FILE_EXTENSION in "exe" "zip"; do
UPLOAD_RESULT=`curl -s -H "Authorization: token $TOKEN" -H "Content-Type: application/octet-stream" --data-binary @../Releases/$FILE_PREFIX.$FILE_EXTENSION -X POST $ASSET_UPLOAD_URL?name=$FILE_PREFIX.$FILE_EXTENSION`
echo $UPLOAD_RESULT | grep --quiet "browser_download_url"