Remove pushing the srpm as Gitea doesn't handle them properly

Gitea assumes rpm files can only have an .rpm extension
This commit is contained in:
2025-02-05 13:18:56 +01:00
parent 1fb1254f8a
commit 545109fc4c
-8
View File
@@ -30,19 +30,11 @@ runs:
fi
echo
done
echo Publishing $(rpmspec -q --srpm $SPECFILE).rpm to ${{ gitea.server_url }}
curl "${CURLARGS[@]}" SRPMS/$(rpmspec -q --srpm $SPECFILE).rpm ${{ gitea.server_url }}/api/packages/${{ gitea.actor }}/rpm/${{ gitea.actor }}-${DIST}/upload
if [ $? -ne 0 ]; then
echo Publishing failed
exit $?
fi
echo
echo "Pushed the following files to the ${{ gitea.server_url }}/${{ gitea.actor }} rpm repository:"
for RPM in $(rpmspec --rpms -q --qf '%{nevra} ' $SPECFILE); do
echo $RPM.rpm
done
echo $(rpmspec -q --srpm $SPECFILE).rpm
branding:
icon: "upload"
color: "gray-dark"