From 4d8c37f8ff0bff01583ae2c9acde00f4a1eb90d1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 14 Apr 2026 14:18:35 +0200 Subject: [PATCH] fix(ci): exclude package files from repo metadata upload The dl.vikunja.io worker redirects package file requests under /repos/ to the existing artifacts, so uploading them again is redundant. Remove .deb, .rpm, .apk, .archlinux, .pacman, .pkg.tar.zst files and symlinks before uploading to R2. --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7718c23df..be48a5054 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -350,10 +350,17 @@ jobs: - name: Debug - repo output structure run: find dist/repo-output -type f 2>/dev/null || ls -laR dist/repo-output/ || true - - name: Clean up repo output + - name: Remove packages and internal state from repo output run: | # Remove reprepro internal state (not needed for serving) rm -rf dist/repo-output/apt/db dist/repo-output/apt/conf 2>/dev/null || true + # Remove actual package files — the worker redirects these to the + # existing artifacts so we don't need to store them twice. + find dist/repo-output -type f \( -name '*.deb' -o -name '*.rpm' -o -name '*.apk' -o -name '*.archlinux' -o -name '*.pacman' -o -name '*.pkg.tar.zst' \) -delete 2>/dev/null || true + # Remove symlinks to package files (rpm/pacman/apk use symlinks) + find dist/repo-output -type l -delete 2>/dev/null || true + # Remove now-empty directories + find dist/repo-output -type d -empty -delete 2>/dev/null || true - name: Upload to R2 uses: kolaente/s3-action@main