diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index a7776160e6f..eb95e454ffa 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -74,14 +74,14 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Setup OSX key chain on OSX - if: matrix.os == 'macos-latest' + if: ${{ matrix.os == 'macos-latest' && github.event.pull_request.head.repo.full_name == github.repository }} uses: apple-actions/import-codesign-certs@v1 with: p12-file-base64: ${{ secrets.OSX_SIGNING_CERT }} p12-password: ${{ secrets.OSX_CERT_PWD }} keychain-password: jabref - name: Setup OSX key chain on OSX for app id cert - if: matrix.os == 'macos-latest' + if: ${{ matrix.os == 'macos-latest' && github.event.pull_request.head.repo.full_name == github.repository }} uses: apple-actions/import-codesign-certs@v1 with: p12-file-base64: ${{ secrets.OSX_SIGNING_CERT_APPLICATION }} @@ -94,7 +94,7 @@ jobs: run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" jpackage shell: bash - name: Resign app image for OSX and build dmg - if: matrix.os == 'macos-latest' + if: ${{ matrix.os == 'macos-latest' && github.event.pull_request.head.repo.full_name == github.repository }} shell: bash run: | codesign --entitlements buildres/mac/jabref.entitlements --options runtime -vvv -f --sign "Developer ID Application: Tobias Diez (W2PU6LW5U5)" build/distribution/JabRef.app/Contents/runtime/Contents/MacOS/libjli.dylib