Skip to content

Commit

Permalink
Skip notarization on a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Sep 17, 2024
1 parent 69985c0 commit 59f1450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/BuildPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- name: Build project
run: scripts/darwin/build.sh
- name: Codesign app bundle
if: ${{ github.event.pull_request.head.repo.full_name != 'org/repo' }} # not running on a fork
# Extract the secrets we defined earlier as environment variables
env:
MACOS_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
Expand Down Expand Up @@ -76,6 +77,7 @@ jobs:
/usr/bin/codesign --timestamp --options=runtime -s "$MACOS_CERTIFICATE_NAME" -f -v /Users/runner/work/dlt-viewer/dlt-viewer/build/install/DLTViewer.app/Contents/MacOS/dlt-viewer
/usr/bin/codesign --timestamp --options=runtime -s "$MACOS_CERTIFICATE_NAME" -f -v /Users/runner/work/dlt-viewer/dlt-viewer/build/install/DLTViewer.app
- name: Notarize app bundle
if: ${{ github.event.pull_request.head.repo.full_name != 'org/repo' }} # not running on a fork
env:
PROD_MACOS_NOTARIZATION_APPLE_ID: ${{ secrets.APPLE_ID }}
PROD_MACOS_NOTARIZATION_TEAM_ID: ${{ secrets.TEAM_ID }}
Expand Down

0 comments on commit 59f1450

Please sign in to comment.