1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-11 11:42:15 +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:
Carlos A Becker 2021-10-06 01:16:05 -03:00
parent 1f774d5d6a
commit c456654778
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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