I'm starting to understand the stuff, the upload only works with a releaseId...

This commit is contained in:
xawotihs
2013-12-06 00:10:36 +01:00
parent 74faa35b91
commit 8100e390b1

View File

@@ -4,7 +4,7 @@ if [ "$TRAVIS_BRANCH" == "ci_upload_binaries" ]; then
curl -X POST -H "Authorization: token ${GH_TOKEN}" \
-d '{"tag_name": "pre-release-'${TRAVIS_BUILD_NUMBER}'", "target_commitish": "master", "name": "pre-release-'${TRAVIS_BUILD_NUMBER}'", "body": "Automatic pre-release '${TRAVIS_BUILD_NUMBER}'", "draft": true, "prerelease": true}' "https://api.github.com/repos/WagicProject/wagic/releases"
# Now we upload
echo -e "Uploading android package\n"
curl -X POST -H "Authorization: token ${GH_TOKEN}" \
-H "Accept: application/vnd.github.manifold-preview" \
-H "Content-Type: application/zip" \