Fix upload and dch issues
All checks were successful
Build ostree packages from sid to trixie / Build ostree packages (push) Successful in 9m33s
All checks were successful
Build ostree packages from sid to trixie / Build ostree packages (push) Successful in 9m33s
- Use PUT method for Forgejo uploads as per documentation - Fix dch backport by using --force-distribution and EDITOR=true - This should resolve both the reqPackageAccess and dch editor issues - Upload should now work properly with correct HTTP method
This commit is contained in:
parent
11ce6cc22a
commit
1fbf60a1a6
1 changed files with 5 additions and 3 deletions
|
|
@ -81,8 +81,9 @@ jobs:
|
|||
cd /tmp/ostree-*
|
||||
export DEBEMAIL="build@particle-os.local"
|
||||
export EMAIL="build@particle-os.local"
|
||||
export EDITOR="nano"
|
||||
echo "y" | dch --bpo || echo "dch --bpo failed, continuing..."
|
||||
export EDITOR="true"
|
||||
# Use dch with --force-distribution to avoid interactive prompts
|
||||
dch --bpo --force-distribution || echo "dch --bpo failed, continuing..."
|
||||
|
||||
- name: Build packages
|
||||
run: |
|
||||
|
|
@ -122,7 +123,8 @@ jobs:
|
|||
if [ -f "$deb_file" ]; then
|
||||
echo "Uploading $deb_file to Forgejo Debian Registry..."
|
||||
UPLOAD_URL="https://git.raines.xyz/api/packages/particle-os/debian/pool/trixie/main/upload"
|
||||
curl --user "${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }}" \
|
||||
curl -X PUT \
|
||||
--user "${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }}" \
|
||||
--upload-file "$deb_file" \
|
||||
"$UPLOAD_URL"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue