refactor: github electron build action

This commit is contained in:
Dr_rOot
2023-04-26 16:56:21 +08:00
parent 67d26e4b1f
commit e281b71d4e
+3 -3
View File
@@ -37,7 +37,7 @@ jobs:
run: snapcraft --help
- name: Prepare for app notarization (macOS)
if: startsWith(matrix.os, 'macos') && startsWith(github.ref, 'refs/tags/v')
if: startsWith(matrix.os, 'macos')
# Import Apple API key for app notarization on macOS
run: |
mkdir -p ~/private_keys/
@@ -57,9 +57,9 @@ jobs:
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ secrets.force_release == 'true' || startsWith(github.ref, 'refs/tags/v') }}
release: ${{ secrets.skip_release != 'true' }}
env:
# macOS notarization API key
API_KEY_ID: ${{ secrets.api_key_id }}
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
SKIP_NOTARIZE: ${{ secrets.skip_notarize == 'true' || !startsWith(github.ref, 'refs/tags/v') }}
SKIP_NOTARIZE: ${{ secrets.skip_notarize == 'true' }}