diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3986643679..1d88e44867 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,8 +73,10 @@ jobs: yarn run build:apm # macOS Signing Stuff - - name: Build Pulsar Binaries (macOS) - if: ${{ runner.os == 'macOS' }} + - name: Build Pulsar Binaries (macOS) (Signed) + if: ${{ runner.os == 'macOS' && github.event.pull_request.head.repo.full_name == 'pulsar-edit/pulsar' }} + # PRs generated from forks cannot access GitHub Secrets + # So if the PR is a fork, we will still build, but will not sign. env: CSC_LINK: ${{ secrets.CSC_LINK }} CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} @@ -88,6 +90,15 @@ jobs: retry_on: error command: yarn dist + - name: Build Pulsar Binaries (macOS) (Unsigned) + if: ${{ runner.os == 'macOS' && github.event.pull_request.head.repo.full_name != 'pulsar-edit/pulsar' }} + uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd + with: + timeout_minutes: 30 + max_attempts: 3 + retry_on: error + command: yarn dist + - name: Build Pulsar Binaries if: ${{ runner.os != 'macOS' }} uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd