Skip to content

Commit

Permalink
xcrun notarytool
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Dec 2, 2024
1 parent fcdcd4e commit 6439154
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,25 +163,20 @@ jobs:
if: contains(matrix.target, 'apple-darwin')
run: codesign --timestamp --sign "${{ steps.import_certs.outputs.identity }}" dist/dash-evo-tool-${{ matrix.platform }}.${{ matrix.release-ext }}

# Notarize the .dmg for macOS using samuelmeuli/action-notarize
- name: Notarize .dmg
# Notarize MacOS Release Build using xcrun notarytool
- name: Notarize MacOS Release Build
if: contains(matrix.target, 'apple-darwin')
uses: samuelmeuli/action-notarize@v1
with:
appPath: dist/dash-evo-tool-${{ matrix.platform }}.${{ matrix.release-ext }}
bundleId: dcg.dash-evo-tool
#ascProvider: ${{ secrets.APPLE_TEAM_ID }} # Optional, remove if not needed
env:
NOTARIZE_USERNAME: ${{ secrets.APPLE_ID }}
NOTARIZE_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}

# Stapling is handled by the action-notarize, so this step is optional
# - name: Staple Notarization Ticket
# if: contains(matrix.target, 'apple-darwin')
# run: xcrun stapler staple dist/dash-evo-tool-${{ matrix.platform }}.${{ matrix.release-ext }}

- name: Package release
run: "${GITHUB_WORKSPACE}/scripts/pack.sh ${{ env.VERSION }} ${{ matrix.platform }} ${{ matrix.ext }}"
run: |
xcrun notarytool submit "dist/dash-evo-tool-${{ matrix.platform }}.${{ matrix.release-ext }}" \
--apple-id "${{ secrets.APPLE_ID }}" \
--team-id "${{ secrets.APPLE_TEAM_ID }}" \
--password "${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}" \
--wait
# Staple Notarization Ticket
- name: Staple Notarization Ticket
if: contains(matrix.target, 'apple-darwin')
run: xcrun stapler staple "dist/dash-evo-tool-${{ matrix.platform }}.${{ matrix.release-ext }}"

- name: Attest
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit 6439154

Please sign in to comment.