File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ echo -e "Pushing the tarball to GitHub\n"
28
28
# API, the following code deletes the old asset, and uploads the new one in its place
29
29
# Get the previous asset id of the tarball
30
30
echo -e " Getting previous asset ID\n"
31
- ASSETID=` curl -s -X GET https://api.github.com/repos/kingsfordgroup/armatus/releases/879142 /assets | grep " \" id" | head -1 | awk ' {gsub(/,$/,""); print $2}' `
31
+ ASSETID=` curl -s -X GET https://api.github.com/repos/kingsfordgroup/armatus/releases/879557 /assets | grep " \" id" | head -1 | awk ' {gsub(/,$/,""); print $2}' `
32
32
# Delete the previous tarball
33
33
echo -e " Deleting previous asset\n"
34
- curl -X DELETE -H " Authorization: token 4785c1bec9ac9661a574c333ebe97a9ec251399e " https://api.github.com/repos/kingsfordgroup/armatus/releases/assets/$ASSETID
34
+ curl -X DELETE -H " Authorization: token ae2cb942be590a7164823b55080674832ce6d5c2 " https://api.github.com/repos/kingsfordgroup/armatus/releases/assets/$ASSETID
35
35
# Upload the new tarball
36
36
echo -e " Uploading new asset\n"
37
- curl -X POST --data-binary " @Armatus-latest_ubuntu-12.04.tar.gz" https://uploads.github.com/repos/kingsfordgroup/armatus/releases/879142 /assets? name=Armatus-latest_ubuntu-12.04.tar.gz --header " Content-Type:application/gzip" -H " Authorization: token 4785c1bec9ac9661a574c333ebe97a9ec251399e "
37
+ curl -X POST --data-binary " @Armatus-latest_ubuntu-12.04.tar.gz" https://uploads.github.com/repos/kingsfordgroup/armatus/releases/879557 /assets? name=Armatus-latest_ubuntu-12.04.tar.gz --header " Content-Type:application/gzip" -H " Authorization: token ae2cb942be590a7164823b55080674832ce6d5c2 "
38
38
echo -e " Done!\n"
You can’t perform that action at this time.
0 commit comments