forgejo-deb/.ci-forgejo-apt.sh
2023-07-02 11:42:14 -06:00

9 lines
253 B
Bash
Executable file

#!/bin/sh
EXIT_TOTAL=0
for deb in "$@" ; do
curl -X PUT -H "Authorization: token $FORGEJO_KEY" -T "$deb" $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload
EXIT_TOTAL=$(($EXIT_TOTAL+$?))
done
exit $EXIT_TOTAL