From 62d66cd97f076b51aa471b293d34e81c3a463e80 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Fri, 24 Jul 2026 13:31:52 -0400 Subject: [PATCH] ci: skip debug package when publishing Arch registry The glob matched both the main and -debug packages and passed both to a single curl --upload-file, producing a newline-joined filename curl could not open (exit 26). Loop over the matches and skip the -debug package, which end users don't need. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/arch-package.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/arch-package.yml b/.gitea/workflows/arch-package.yml index 59b2f9a..838115e 100644 --- a/.gitea/workflows/arch-package.yml +++ b/.gitea/workflows/arch-package.yml @@ -52,8 +52,14 @@ jobs: - name: Publish to the Gitea Arch registry run: | cd /build/yellowjacket/packaging/arch - pkg=$(ls yellowjacket-*.pkg.tar.zst) - echo "Uploading $pkg" - curl --fail-with-body --user "${OWNER}:${PACKAGE_TOKEN}" \ - --upload-file "$pkg" \ - "${SERVER_URL}/api/packages/${OWNER}/arch/${ARCH_REPO}" + # makepkg also produces a -debug package (detached symbols); end users + # don't need it, so publish only the runtime package(s). + for pkg in yellowjacket-*.pkg.tar.zst; do + case "$pkg" in + yellowjacket-debug-*) continue ;; + esac + echo "Uploading $pkg" + curl --fail-with-body --user "${OWNER}:${PACKAGE_TOKEN}" \ + --upload-file "$pkg" \ + "${SERVER_URL}/api/packages/${OWNER}/arch/${ARCH_REPO}" + done