-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (60 loc) · 1.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Package and publish
on:
workflow_dispatch:
push:
tags:
- "*"
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
concurrency:
group: boson-publish
cancel-in-progress: true
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Install Node and NPM
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Brew install dependencies
run: |
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
- name: Add MacOS certs
run: chmod +x tools/add-macos-cert.sh && ./tools/add-macos-cert.sh
env:
MACOS_CERT_P12: ${{ secrets.CSC_LINK }}
MACOS_CERT_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
# It seems we need to delete the draft release or often it will fail
# uploading assets.
- name: Delete drafts
uses: hugo19941994/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make
uses: borales/actions-yarn@v5
env:
# These values are used for auto updates signing
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cmd: make --arch arm64,x64,universal
- name: Publish
uses: borales/actions-yarn@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cmd: publish