diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbaa30e6e..b1bf39637 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,8 +77,10 @@ jobs: APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} - name: Clean up keychain and provisioning profile - if: runner.os == 'macOS' - run: security delete-keychain $RUNNER_TEMP/app-signing.keychain-db + if: always() && runner.os == 'macOS' + run: | + rm -f $RUNNER_TEMP/build_certificate.p12 + security delete-keychain $RUNNER_TEMP/app-signing.keychain-db - name: Upload artifacts uses: actions/upload-artifact@v4 with: