From 4bb8bd1215a2e43b54c24dad7ecccfcad4f2b0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 17 Feb 2026 18:47:05 +0100 Subject: [PATCH] Only remove unsigned installers when having signed versions (#26047) --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0657db7830..98034c7b1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -695,12 +695,17 @@ jobs: uses: actions/download-artifact@v7 with: merge-multiple: false - # Having multiple artifacts named the same might be confusing. Drop the unsigned versions. + # Only remove unsigned artifacts if signing is enabled, otherwise we might end up with no artifacts at all - name: Remove unsigned artifacts and flatten run: | ls -lR - find . -maxdepth 1 -name '*unsigned*' -type d -exec rm -rf {} + 2>/dev/null || true - echo "Unsigned artifacts removed" + if [[ "${{ needs.build_variables.outputs.sign }}" == "true" ]]; then + echo "Signing enabled, removing unsigned artifacts" + find . -maxdepth 1 -name '*unsigned*' -type d -exec rm -rf {} + 2>/dev/null || true + echo "Unsigned artifacts removed" + else + echo "Signing not enabled, keeping unsigned artifacts" + fi # Flatten remaining artifact directories find . -maxdepth 2 -type f \( -path './OpenRCT2-*/*' -o -path './graphics-*/*' \) -exec mv {} . \; # Clean up empty directories