From 45e86c93284de78dc47a0a46650ad9335842780f Mon Sep 17 00:00:00 2001 From: robojerk Date: Sat, 6 Sep 2025 12:17:10 -0700 Subject: [PATCH] Fix Forgejo upload API endpoint - 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 --- .forgejo/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 3ae0a16..1225ad5 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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