Commented out the release creation and refered an existing release instead.

This commit is contained in:
xawotihs
2013-12-06 00:47:24 +01:00
parent 67b8af8d15
commit b851103711

View File

@@ -1,7 +1,7 @@
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
if [ "$TRAVIS_BRANCH" == "ci_upload_binaries" ]; then
echo -e "Creating a release\n"
curl -X POST -H "Authorization: token ${GH_TOKEN}" \
# echo -e "Creating a release\n"
# 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"
echo -e "Uploading android package\n"
@@ -9,7 +9,7 @@ if [ "$TRAVIS_BRANCH" == "ci_upload_binaries" ]; then
-H "Accept: application/vnd.github.manifold-preview" \
-H "Content-Type: application/zip" \
--data-binary @projects/mtg/Android/bin/Wagic-debug.apk \
"https://uploads.github.com/repos/WagicProject/wagic/releases/pre-release-${TRAVIS_BUILD_NUMBER}/assets?name=Wagic-android-${TRAVIS_BUILD_NUMBER}.apk"
"https://uploads.github.com/repos/WagicProject/wagic/releases/113675/assets?name=Wagic-android-${TRAVIS_BUILD_NUMBER}.apk"
echo -e "Done uploading\n"
fi