diff --git a/.github/workflows/osx-aarch64.yml b/.github/workflows/osx-aarch64.yml index 2d8ea61..f3330b0 100644 --- a/.github/workflows/osx-aarch64.yml +++ b/.github/workflows/osx-aarch64.yml @@ -33,8 +33,8 @@ jobs: security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH security list-keychain -d user -s $KEYCHAIN_PATH - - name: Setup the Notary Information - if: github.ref_type == 'tag' && github.repository == 'TermoraDev/termora' + - name: Setup the Notary information + if: "startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora'" env: APPLE_ID: ${{ secrets.APPLE_ID }} TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} @@ -70,7 +70,7 @@ jobs: TERMORA_MAC_SIGN: ${{ github.event_name == 'push' && github.repository == 'TermoraDev/termora' }} TERMORA_MAC_SIGN_USER_NAME: ${{ secrets.TERMORA_MAC_SIGN_USER_NAME }} # 只有发布版本时才需要公证 - TERMORA_MAC_NOTARY: ${{ github.ref_type == 'tag' && github.repository == 'TermoraDev/termora' }} + TERMORA_MAC_NOTARY: "${{ startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora' }}" TERMORA_MAC_NOTARY_KEYCHAIN_PROFILE: ${{ secrets.TERMORA_MAC_NOTARY_KEYCHAIN_PROFILE }} run: | ./gradlew dist --no-daemon diff --git a/.github/workflows/osx-x86-64.yml b/.github/workflows/osx-x86-64.yml index f1a4560..0fd559d 100644 --- a/.github/workflows/osx-x86-64.yml +++ b/.github/workflows/osx-x86-64.yml @@ -33,8 +33,8 @@ jobs: security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH security list-keychain -d user -s $KEYCHAIN_PATH - - name: Setup the Notary Information - if: github.ref_type == 'tag' && github.repository == 'TermoraDev/termora' + - name: Setup the Notary information + if: "startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora'" env: APPLE_ID: ${{ secrets.APPLE_ID }} TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} @@ -72,7 +72,7 @@ jobs: TERMORA_MAC_SIGN: ${{ github.event_name == 'push' && github.repository == 'TermoraDev/termora' }} TERMORA_MAC_SIGN_USER_NAME: ${{ secrets.TERMORA_MAC_SIGN_USER_NAME }} # 只有发布版本时才需要公证 - TERMORA_MAC_NOTARY: ${{ github.ref_type == 'tag' && github.repository == 'TermoraDev/termora' }} + TERMORA_MAC_NOTARY: "${{ startsWith(github.event.head_commit.message, 'release: ') && github.repository == 'TermoraDev/termora' }}" TERMORA_MAC_NOTARY_KEYCHAIN_PROFILE: ${{ secrets.TERMORA_MAC_NOTARY_KEYCHAIN_PROFILE }} run: | ./gradlew dist --no-daemon