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 <noreply@anthropic.com>
This commit is contained in:
2026-07-24 13:31:52 -04:00
co-authored by Claude Opus 4.8
parent 5b85d51b39
commit 62d66cd97f
+11 -5
View File
@@ -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