From d7f8ee7d178c99f6a62733b272bae12c5ad499b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Thu, 18 Apr 2024 09:07:07 -0700 Subject: [PATCH] Try uisng the apple-actions/import-codesign-certs@v2 action to import the codesigning certificate instead of the custom script. --- .github/workflows/publish.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6e210ab..27a6b01 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,11 +47,17 @@ jobs: run: | brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman - - name: Add MacOS certs - run: chmod +x tools/add-macos-cert.sh && ./tools/add-macos-cert.sh - env: - MACOS_CERT_P12: ${{ secrets.CSC_LINK }} - MACOS_CERT_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} + # - name: Add MacOS certs + # run: chmod +x tools/add-macos-cert.sh && ./tools/add-macos-cert.sh + # env: + # MACOS_CERT_P12: ${{ secrets.CSC_LINK }} + # MACOS_CERT_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} + + - name: Import codesign certs + uses: apple-actions/import-codesign-certs@v2 + with: + p12-file-base64: ${{ secrets.CSC_LINK }} + p12-password: ${{ secrets.CSC_KEY_PASSWORD }} - name: Run install run: yarn install