github.com/goreleaser/goreleaser@v1.25.1/scripts/fury-upload.sh (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  if [ "${1: -4}" == ".deb" ] || [ "${1: -4}" == ".rpm" ]; then
     4  	cd dist
     5  	echo "uploading $1"
     6  	status="$(curl -s -q -o /dev/null -w "%{http_code}" -F package="@$1" "https://$FURY_TOKEN@push.fury.io/goreleaser/")"
     7  	echo "got: $status"
     8  	if [ "$status" == "200" ] || [ "$status" == "409" ]; then
     9  		exit 0
    10  	fi
    11  	exit 1
    12  fi