fury-publish 263 B

123456789101112131415
  1. #!/bin/bash
  2. account=$1
  3. set -euo pipefail
  4. if [ -z "$account" ]; then
  5. echo specify account as the first parameter
  6. exit 2
  7. fi
  8. for f in dist/*.rpm dist/*.deb; do
  9. echo Uploading $f
  10. curl -sf -F package=@$f https://${FURY_TOKEN}@push.fury.io/${account}/
  11. done