-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (48 loc) · 1.48 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Publish
permissions:
contents: read
on:
push:
branches: ['main']
jobs:
publish:
permissions:
contents: write
issues: read
pull-requests: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Install Node, NPM and Yarn
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: 20.6.1
- name: Install dependencies
run: |
yarn install
- name: Import Apple CSC
uses: apple-actions/import-codesign-certs@63fff01cd422d4b7b855d40ca1e9d34d2de9427d
with:
p12-file-base64: ${{ secrets.APPLE_APP_CSC }}
p12-password: ${{ secrets.APPLE_APP_CSC_PASSWORD }}
- name: Set up Apple ID Credentials
run: |
mkdir ~/private_keys
key_path=~/private_keys/AuthKey_${{ secrets.APPLE_ID }}.p8
echo "${{ secrets.APPLE_ID_KEY }}" > "$key_path"
echo "APPLE_API_KEY_PATH=$key_path" >> "$GITHUB_ENV"
- name: Release
env:
GH_TOKEN: ${{ secrets.github_token }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_KEY_ISSUER: ${{ secrets.APPLE_ID_KEY_ISSUER }}
run: |
yarn release -m --arm64
yarn release -m --x64
yarn release -l --arm64
yarn release -l --x64
yarn release -w