name: Prepare Release Artifacts description: Download and flatten release artifacts for publishing runs: using: composite steps: - name: Download all artifacts uses: actions/download-artifact@v4 with: path: artifacts - name: List downloaded artifacts shell: bash run: | echo "=== All artifacts downloaded ===" ls -lR artifacts/ echo "" echo "=== Windows artifacts only ===" ls -l artifacts/windows-*/ - name: Flatten artifacts (exclude unsigned Windows installers) shell: bash run: | mkdir -p staging # Copy all files except those from unsigned Windows artifact directories find artifacts -type f ! -path "*/windows-*-unsigned-*/*" -exec cp {} staging/ \; echo "" echo "=== Files copied to staging ===" ls -lh staging/ echo "" echo "=== Windows installers in staging ===" ls -lh staging/YACReader*.exe || echo "No Windows installers found"