From 8976b2308d4218fd6a80f2095c02d4f8fac3c7e6 Mon Sep 17 00:00:00 2001 From: Hossain Khan Date: Fri, 27 Jun 2025 23:33:47 -0400 Subject: [PATCH] [UPDATE] Exclude keystore files from artifact from the workflow --- .github/workflows/test-keystore.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-keystore.yml b/.github/workflows/test-keystore.yml index f447ddf..05a2ecd 100644 --- a/.github/workflows/test-keystore.yml +++ b/.github/workflows/test-keystore.yml @@ -144,10 +144,22 @@ jobs: echo "Testing the newly created keystore:" keytool -list -keystore keystore-test/debug.keystore -storepass android + - name: Prepare Artifacts (Excluding Keystore) + if: always() # Run even if previous steps failed + run: | + # Create a directory for artifacts without the keystore + mkdir -p keystore-test-artifacts + + # Copy all txt files and other diagnostic outputs, but not the keystores + cp keystore-test/*.txt keystore-test-artifacts/ 2>/dev/null || true + + echo "Excluded keystores from artifacts for security" + ls -la keystore-test-artifacts/ + - name: Upload Diagnostic Files if: always() # Run even if previous steps failed uses: actions/upload-artifact@v4 with: name: keystore-diagnostic-files - path: keystore-test/ + path: keystore-test-artifacts/ retention-days: 1 # Only keep for a day since it contains diagnostic info