From d7b1c94b9a98a77edbdf79a5d3fd2862bc68d45c Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sat, 10 Jan 2026 01:15:45 +0100 Subject: [PATCH] Fix directory flattening in release workflow - Use dedicated collection directory to avoid naming conflicts - Simplify file movement logic by using release-files directory - Update artifact upload paths to match new structure - Resolves mv errors when files have same names as directories --- .github/workflows/release.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0bf3695..8ea2b7e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -224,13 +224,18 @@ jobs: echo "📁 Downloaded artifact structure:" find . -type f -name "soundtouch-cli-*" - # Flatten directory structure (artifacts are in subdirs) - # Move all binary and checksum files to current directory - find . -mindepth 2 -type f -name "soundtouch-cli-*" -exec mv {} . \; + # Create a collection directory to avoid naming conflicts + mkdir -p release-files + + # Move all files from subdirectories to the collection directory + find . -mindepth 2 -type f -name "soundtouch-cli-*" -exec mv {} release-files/ \; # Remove empty directories find . -type d -empty -delete + # Move to the collection directory for the rest of the processing + cd release-files + # Debug: Show flattened structure echo "📁 Flattened structure:" ls -la soundtouch-cli-* || echo "No files found matching pattern" @@ -267,17 +272,17 @@ jobs: with: name: checksums path: | - binaries/checksums.sha256 - binaries/checksums.sha512 - binaries/*.sha256 - binaries/*.sha512 + binaries/release-files/checksums.sha256 + binaries/release-files/checksums.sha512 + binaries/release-files/*.sha256 + binaries/release-files/*.sha512 retention-days: 1 - name: Upload all release assets uses: actions/upload-artifact@v6 with: name: release-assets - path: binaries/ + path: binaries/release-files/ retention-days: 1 create_release: