v1.6.4 #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_mac | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: macos-latest | |
env: | |
GH_TOKEN: ${{secrets.GH_TOKEN}} | |
CSC_LINK: ${{secrets.CSC_LINK}} | |
CSC_KEY_PASSWORD: ${{secrets.CSC_KEY_PASSWORD}} | |
APPLEID: ${{secrets.APPLEID}} | |
APPLEID_PASSWORD: ${{secrets.APPLEID_PASSWORD}} | |
steps: | |
- name: Import signing keychain | |
uses: apple-actions/import-codesign-certs@v2 | |
with: | |
keychain: signing_temp | |
p12-file-base64: ${{secrets.CSC_LINK}} | |
p12-password: ${{secrets.CSC_KEY_PASSWORD}} | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run pack:prepare | |
- run: npm run pack:macm1:publish | |
- run: npm run pack:mac:publish | |
- name: Cleanup keychain | |
if: always() | |
shell: bash | |
run: | | |
# Don't fail if the keychain doesn't exist. | |
security delete-keychain signing_temp.keychain || true |