You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	fix: ignore 409 when pushing to fury.io
closes #2560 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
		| @@ -3,5 +3,10 @@ set -e | ||||
| if [ "${1: -4}" == ".deb" ] || [ "${1: -4}" == ".rpm" ]; then | ||||
| 	cd dist | ||||
| 	echo "uploading $1" | ||||
| 	curl -f -q -s -F package="@$1" "https://$FURY_TOKEN@push.fury.io/goreleaser/" >/dev/null | ||||
| 	status="$(curl -s -q -o /dev/null -w "%{http_code}" -F package="@$1" "https://$FURY_TOKEN@push.fury.io/goreleaser/")" | ||||
| 	echo "got: $status" | ||||
| 	if [ "$status" == "200" ] || [ "$status" == "409" ]; then | ||||
| 		exit 0 | ||||
| 	fi | ||||
| 	exit 1 | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user