mirror of
https://github.com/qishibo/AnotherRedisDesktopManager.git
synced 2026-01-18 16:12:43 +00:00
43 lines
1018 B
YAML
43 lines
1018 B
YAML
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
|