From e4e41667ff3c2475b6b51545620c3640f2dea62f Mon Sep 17 00:00:00 2001 From: hstyi Date: Tue, 8 Jul 2025 12:24:25 +0800 Subject: [PATCH] chore: osx actions --- .github/workflows/osx-aarch64.yml | 4 ++-- .github/workflows/osx-x86-64.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/osx-aarch64.yml b/.github/workflows/osx-aarch64.yml index d7f3a1b..999e051 100644 --- a/.github/workflows/osx-aarch64.yml +++ b/.github/workflows/osx-aarch64.yml @@ -11,7 +11,7 @@ jobs: fetch-depth: 0 - name: Install the Apple certificate - if: github.event_name == 'push' && github.repository == 'TermoraDev/termora' + if: github.event_name == 'push' && github.repository == 'TermoraDev/termora' && env.BUILD_CERTIFICATE_BASE64 != '' env: BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} P12_PASSWORD: ${{ secrets.P12_PASSWORD }} @@ -34,7 +34,7 @@ jobs: security list-keychain -d user -s $KEYCHAIN_PATH - name: Setup the Notary information - if: "startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora'" + if: "startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora' && env.APPLE_ID != ''" env: APPLE_ID: ${{ secrets.APPLE_ID }} TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} diff --git a/.github/workflows/osx-x86-64.yml b/.github/workflows/osx-x86-64.yml index 0046295..53b8187 100644 --- a/.github/workflows/osx-x86-64.yml +++ b/.github/workflows/osx-x86-64.yml @@ -11,7 +11,7 @@ jobs: fetch-depth: 0 - name: Install the Apple certificate - if: github.event_name == 'push' && github.repository == 'TermoraDev/termora' + if: github.event_name == 'push' && github.repository == 'TermoraDev/termora' && env.BUILD_CERTIFICATE_BASE64 != '' env: BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} P12_PASSWORD: ${{ secrets.P12_PASSWORD }} @@ -34,7 +34,7 @@ jobs: security list-keychain -d user -s $KEYCHAIN_PATH - name: Setup the Notary information - if: "startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora'" + if: "startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora' && env.APPLE_ID != ''" env: APPLE_ID: ${{ secrets.APPLE_ID }} TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}