From c9b6aab652e9eee49942718f1a23b08d56eefe9c Mon Sep 17 00:00:00 2001 From: nevaforget Date: Wed, 1 Apr 2026 17:55:32 +0200 Subject: [PATCH] Debug: log HTTP status codes for upload and delete --- .gitea/workflows/build-and-publish.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index 997c052..22dfd84 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -53,16 +53,16 @@ jobs: echo "==> Uploading $PKG_FILE ($PKG_NAME $FULL_VER $PKG_ARCH)" # Delete old version if it exists (ignore 404) - curl -s -X DELETE \ + DEL_RESP=$(curl -s -o /dev/null -w "%{http_code}" -X DELETE \ -H "Authorization: token ${{ secrets.PKG_REGISTRY_TOKEN }}" \ - "https://gitea.moonarch.de/api/packages/nevaforget/arch/moonarch/${PKG_NAME}/${FULL_VER}/${PKG_ARCH}" || true + "https://gitea.moonarch.de/api/packages/nevaforget/arch/moonarch/${PKG_NAME}/${FULL_VER}/${PKG_ARCH}") + echo "==> Delete response: $DEL_RESP" # Upload new version - curl -s \ + UP_RESP=$(curl -s -w "\nHTTP_CODE:%{http_code}" \ -H "Authorization: token ${{ secrets.PKG_REGISTRY_TOKEN }}" \ --upload-file "$PKG_FILE" \ - "https://gitea.moonarch.de/api/packages/nevaforget/arch/moonarch" - - echo "==> Published $PKG_NAME $FULL_VER" + "https://gitea.moonarch.de/api/packages/nevaforget/arch/moonarch") + echo "==> Upload response: $UP_RESP" cd .. done