From 1723925c5c943efdcd8d23dcd89b0b3c23d14e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Thu, 5 Feb 2026 21:44:28 +0100 Subject: [PATCH] Use better filtering for unsigned artifacts in the release (#25924) --- .github/workflows/ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43afc0a986..5246d24ee3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -676,16 +676,23 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v7 with: - merge-multiple: true - # Having multiple artifacts named the same might be confusing to the users. Drop the unsigned versions. - - name: Remove unsigned artifacts + merge-multiple: false + # Having multiple artifacts named the same might be confusing. Drop the unsigned versions. + - name: Remove unsigned artifacts and flatten run: | - rm -rf *unsigned* + ls -lR + find . -maxdepth 1 -name '*unsigned*' -type d -exec rm -rf {} + 2>/dev/null || true + echo "Unsigned artifacts removed" + # Flatten remaining artifact directories + find . -maxdepth 2 -type f \( -path './OpenRCT2-*/*' -o -path './graphics-*/*' \) -exec mv {} . \; + # Clean up empty directories + find . -maxdepth 1 -type d \( -name 'OpenRCT2-*' -o -name 'graphics-*' \) -empty -delete 2>/dev/null || true + ls -lR - name: Concatenate sha256 files run: | ls -lR pushd ${{ github.workspace }} - sha256sum OpenRCT2-* > OpenRCT2-${{ needs.build_variables.outputs.name }}-sha256sums.txt + find . -maxdepth 1 -type f -name 'OpenRCT2-*' -print0 | xargs -0 sha256sum > OpenRCT2-${{ needs.build_variables.outputs.name }}-sha256sums.txt popd - name: Create release notes run: |