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:
parent
1f774d5d6a
commit
c456654778
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user