Fix Forgejo upload API endpoint
All checks were successful
Build ostree packages from sid to trixie / Build ostree packages (push) Successful in 9m23s

- Change from GET with query params to POST with proper authentication
- Use --user instead of Authorization header for better compatibility
- This should resolve the 404 page not found errors during upload
- Build was successful, just need to fix the upload step
This commit is contained in:
robojerk 2025-09-06 12:17:10 -07:00
parent 153b6de939
commit 45e86c9328

View file

@ -121,9 +121,10 @@ jobs:
for deb_file in ../*.deb; do
if [ -f "$deb_file" ]; then
echo "Uploading $deb_file to Forgejo Debian Registry..."
curl --upload-file "$deb_file" \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
"https://git.raines.xyz/api/packages/particle-os/debian/upload?distro=trixie&component=main&architecture=amd64"
curl -X POST \
--user "${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }}" \
--upload-file "$deb_file" \
"https://git.raines.xyz/api/packages/particle-os/debian/"
fi
done