Skip to content

Commit edbfa88

Browse files
committed
updated token
1 parent ea54a41 commit edbfa88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/push-binary.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ echo -e "Pushing the tarball to GitHub\n"
2828
# API, the following code deletes the old asset, and uploads the new one in its place
2929
# Get the previous asset id of the tarball
3030
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}'`
3232
# Delete the previous tarball
3333
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
3535
# Upload the new tarball
3636
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"
3838
echo -e "Done!\n"

0 commit comments

Comments
 (0)