1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/scripts/fury-upload.sh
Carlos Alexandro Becker 0c90fb420b
build: fix generate workflow
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-12-26 13:18:46 -03:00

13 lines
342 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ "${1: -4}" == ".deb" ] || [ "${1: -4}" == ".rpm" ]; then
cd dist
echo "uploading $1"
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