diff --git a/.ci/publish.sh b/.ci/publish.sh deleted file mode 100755 index 1a3b202..0000000 --- a/.ci/publish.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -set -e - -echo "Publishing artifacts" - -if [ -z $DEPLOY_TOKEN ]; then - echo "DEPLOY_TOKEN not set!" - exit 42 -fi - -token="$DEPLOY_TOKEN" -gitlab="https://gitlab.com" -api="$gitlab/api/v4" - - -echo "Uploading the binary to $gitlab" -out=$(curl -f \ - --request POST \ - --header "PRIVATE-TOKEN: $token" \ - --form "file=@$CI_PROJECT_DIR/transceiver-exporter" \ - "$api/projects/$CI_PROJECT_ID/uploads") - - -echo "Response from gitlab is:" -echo "$out" -url=$(echo "$out" | jq -r '.full_path') - -body=$(cat <