Skip to content

Commit

Permalink
Trying to fix issue with getting the release id. (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
slaff authored Oct 24, 2019
1 parent df76479 commit 3711c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RESPONSE=$(curl -H "Content-Type:application/json" -H "$AUTH_HEADER" \
https://api.github.com/repos/SmingHub/Sming/releases)

# Get release id
ID=$(echo $RESPONSE | jq -r .id)
RELEASE_ID=$(echo "$RESPONSE" | jq -r .id)

# [Get all submodules used in this release, pack them and add the archive to the release artifacts]
cd $SMING_HOME
Expand All @@ -25,7 +25,7 @@ ALL_SUBMODULE_DIRS=$(find $SMING_HOME -name '.submodule' | xargs dirname)
FILE=/tmp/sming-submodules.tgz
tar cvzf $FILE $ALL_SUBMODULE_DIRS

curl -H "$AUTH_HEADER" -H "Content-Type: $(file -b --mime-type $FILE)" --data-binary @$FILE "https://uploads.github.com/repos/SmingHub/Sming/releases/$ID/assets?name=$(basename $FILE)"
curl -H "$AUTH_HEADER" -H "Content-Type: $(file -b --mime-type $FILE)" --data-binary @$FILE "https://uploads.github.com/repos/SmingHub/Sming/releases/$RELEASE_ID/assets?name=$(basename $FILE)"

# [Update the documentation]
# On push and release readthedocs webhook should update the documentation automatically.
Expand Down

0 comments on commit 3711c18

Please sign in to comment.