Skip to content

Commit

Permalink
Refactor build.yaml to remove unnecessary directory creation step and…
Browse files Browse the repository at this point in the history
… simplify notarization process
  • Loading branch information
royshil committed Oct 30, 2024
1 parent 6282d33 commit 1c22b94
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,26 +187,18 @@ jobs:
run: |
ditto -c -k --keepParent dist/note-taker note-taker.zip
- name: Notarize and Staple
- name: Notarize
if: startsWith(matrix.os, 'macos')
run: |
xcrun notarytool submit note-taker.zip --apple-id \
"${{ secrets.APPLE_DEVELOPER_ID_USER }}" --password \
"${{ secrets.APPLE_DEVELOPER_ID_PASSWORD }}" --team-id \
"${{ secrets.APPLE_DEVELOPER_ID_TEAM }}" --wait --verbose
# Unzip the notarized app
rm -rf dist/note-taker
unzip note-taker.zip
chmod 755 dist/note-taker
# Staple the notarization
xcrun stapler staple dist/note-taker
- name: Verify Notarization
- name: Verify Code Signing
if: startsWith(matrix.os, 'macos')
run: |
xcrun stapler validate dist/note-taker
codesign -vv --deep dist/note-taker
spctl -a -v dist/note-taker
rm note-taker.zip
Expand Down

0 comments on commit 1c22b94

Please sign in to comment.