Sign, package, and notarize macOS binaries.
This action will...
- Sign the specified binary.
- Put the signed binary, along with any extra files, into a DMG disk image.
- Sign the DMG disk image.
- Notarize the DMG disk image.
This GitHub Action requires a macOS runner.
- uses: halprin/macos-sign-package-notarize@v1
with:
path-to-binary: ./evn-pilot-conversion
signing-identity: ${{ secrets.SIGNING_IDENTITY }}
apple-id: ${{ secrets.APPLE_ID }}
app-specific-password: ${{ secrets.APP_SPECIFIC_PASSWORD }}
apple-developer-team-id: ${{ secrets.APPLE_DEVELOPER_TEAM_ID }}
extra-files: README.md LICENSE
archive-disk-name: My macOS Program
archive-file-path: ./my-macos-program.dmg
Descriptions for these inputs are in action.yml
.
Use GitHub secrets for the app-specific-password
input! The app-specific-password
value is sensitive and must not be revealed.
The signing-identity
references a certificate in the macOS Keychain. This certificate can be imported using the apple-actions/import-codesign-certs
GitHub Action before running this repository's GitHub Action in a GitHub Action workflow.
You may want to upload the DMG disk image to a release's assets after running this repository's GitHub Action in a GitHub Action workflow.
- name: Upload Release Asset
run: gh release upload ${{ github.event.release.tag_name }} ./my-macos-program.dmg --clobber
env:
GH_TOKEN: ${{ github.token }}