Skip to content

Commit 797c813

Browse files
committed
fix(ci): revert S3 glob to **/* and clean up directories before upload
The **/*.* glob skipped extensionless files like Release, InRelease, and Packages. Revert to **/* and instead remove reprepro's internal db/conf directories and directory symlinks before uploading.
1 parent 8bde434 commit 797c813

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,13 @@ jobs:
350350
- name: Debug - repo output structure
351351
run: find dist/repo-output -type f 2>/dev/null || ls -laR dist/repo-output/ || true
352352

353+
- name: Remove directories and internal db from repo output
354+
run: |
355+
# Remove reprepro internal database (not needed for serving)
356+
rm -rf dist/repo-output/apt/db dist/repo-output/apt/conf 2>/dev/null || true
357+
# Remove symlinks to directories that confuse the S3 upload
358+
find dist/repo-output -type l -exec sh -c 'test -d "$1" && rm "$1"' _ {} \; 2>/dev/null || true
359+
353360
- name: Upload repo metadata to R2
354361
uses: kolaente/s3-action@41963184b524ccac734ea4d8c964ac74b5b1af89 # v1.2.1
355362
with:
@@ -359,7 +366,7 @@ jobs:
359366
s3-bucket: ${{ secrets.S3_BUCKET }}
360367
s3-region: ${{ secrets.S3_REGION }}
361368
target-path: /repos
362-
files: "dist/repo-output/**/*.*"
369+
files: "dist/repo-output/**/*"
363370
strip-path-prefix: dist/repo-output/
364371

365372
config-yaml:

0 commit comments

Comments
 (0)