Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable standalone utility notarization #572

Merged
merged 1 commit into from
Feb 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,37 @@ jobs:
npm run packageMac
name: Build Standalone Utility
working-directory: wpilib-utility-standalone
# - name: Import Developer ID Certificate
# uses: wpilibsuite/import-signing-certificate@v1
# with:
# certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }}
# certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }}
# if: |
# (github.repository_owner == 'wpilibsuite') &&
# (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
# - name: Sign Standalone Utility
# run: npm run signMac
# working-directory: wpilib-utility-standalone
# if: |
# (github.repository_owner == 'wpilibsuite') &&
# (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
# - name: Notarize Standalone Utility
# uses: wpilibsuite/xcode-notarize@v1
# with:
# product-path: "wpilib-utility-standalone/build/wpilibutility-darwin-x64/wpilibutility.app"
# primary-bundle-id: edu.wpi.first.wpilibutility
# appstore-connect-username: ${{ secrets.APPLE_NOTARIZATION_USERNAME }}
# appstore-connect-password: ${{ secrets.APPLE_NOTARIZATION_PASSWORD }}
# if: |
# (github.repository_owner == 'wpilibsuite') &&
# (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
# - name: Staple Notarization Ticket
# run: xcrun stapler staple -v wpilibutility.app
# working-directory: wpilib-utility-standalone/build/wpilibutility-darwin-x64
# if: |
# (github.repository_owner == 'wpilibsuite') &&
# (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
- name: Import Developer ID Certificate
uses: wpilibsuite/import-signing-certificate@v1
with:
certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }}
certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }}
if: |
(github.repository_owner == 'wpilibsuite') &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
- name: Sign Standalone Utility
run: npm run signMac
working-directory: wpilib-utility-standalone
if: |
(github.repository_owner == 'wpilibsuite') &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
- name: Notarize Standalone Utility
uses: wpilibsuite/xcode-notarize@v1
with:
product-path: "wpilib-utility-standalone/build/wpilibutility-darwin-x64/wpilibutility.app"
primary-bundle-id: edu.wpi.first.wpilibutility
appstore-connect-username: ${{ secrets.APPLE_NOTARIZATION_USERNAME }}
appstore-connect-password: ${{ secrets.APPLE_NOTARIZATION_PASSWORD }}
if: |
(github.repository_owner == 'wpilibsuite') &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
- name: Staple Notarization Ticket
run: xcrun stapler staple -v wpilibutility.app
working-directory: wpilib-utility-standalone/build/wpilibutility-darwin-x64
if: |
(github.repository_owner == 'wpilibsuite') &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
- run: tar -C build/wpilibutility-darwin-x64 -pcvzf wpilibutility-mac.tar.gz .
working-directory: wpilib-utility-standalone
name: Create Archive
Expand Down