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:
@@ -52,8 +52,14 @@ jobs:
|
|||||||
- name: Publish to the Gitea Arch registry
|
- name: Publish to the Gitea Arch registry
|
||||||
run: |
|
run: |
|
||||||
cd /build/yellowjacket/packaging/arch
|
cd /build/yellowjacket/packaging/arch
|
||||||
pkg=$(ls yellowjacket-*.pkg.tar.zst)
|
# makepkg also produces a -debug package (detached symbols); end users
|
||||||
echo "Uploading $pkg"
|
# don't need it, so publish only the runtime package(s).
|
||||||
curl --fail-with-body --user "${OWNER}:${PACKAGE_TOKEN}" \
|
for pkg in yellowjacket-*.pkg.tar.zst; do
|
||||||
--upload-file "$pkg" \
|
case "$pkg" in
|
||||||
"${SERVER_URL}/api/packages/${OWNER}/arch/${ARCH_REPO}"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user