From c4901f8ad8d9e9b0d0670267bce4a885e78ecdf4 Mon Sep 17 00:00:00 2001 From: fossdd Date: Tue, 13 Jul 2021 08:38:38 +0200 Subject: [PATCH] CI: Let everyone install their own Apple codesigning certificates Previously, only 'Audacity' had the ability to use Apple certificates. This change will allow every fork developer to sign their own code by configuring the corresponding secret in their repository settings. Signed-off-by: fossdd --- .github/workflows/cmake_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake_build.yml b/.github/workflows/cmake_build.yml index 53d1a7193..732c20286 100644 --- a/.github/workflows/cmake_build.yml +++ b/.github/workflows/cmake_build.yml @@ -66,7 +66,7 @@ jobs: - name: Install Apple codesigning certificates uses: apple-actions/import-codesign-certs@v1 - if: startswith( matrix.config.os, 'macos' ) && github.event_name == 'push' && github.repository_owner == 'audacity' + if: startswith( matrix.config.os, 'macos' ) && github.event_name == 'push' && secrets.APPLE_CERTIFICATE != '' && secrets.APPLE_CERTIFICATE_PASSWORD != '' with: p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }} p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}