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