common/scripts/fury-publish

16 lines
263 B
Plaintext
Raw Normal View History

2023-07-09 00:39:36 +00:00
#!/bin/bash
account=$1
set -euo pipefail
if [ -z "$account" ]; then
echo specify account as the first parameter
exit 2
fi
for f in dist/*.rpm dist/*.deb; do
echo Uploading $f
curl -sf -F package=@$f https://${FURY_TOKEN}@push.fury.io/${account}/
done