-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (57 loc) · 1.84 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]
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 }}
DEBUG: electron-packager,electron-osx-sign*
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Install Node and NPM
uses: actions/setup-node@v4
with:
node-version: 21
cache: npm
- name: Install Yarn
run: npm install -g yarn
- name: Brew install dependencies
run: |
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
- name: Import codesign certs
uses: slidoapp/import-codesign-certs@node20
with:
p12-file-base64: ${{ secrets.CSC_LINK }}
p12-password: ${{ secrets.CSC_KEY_PASSWORD }}
- name: Run install
run: yarn install
# It seems we need to delete the draft release or often it will fail
# uploading assets.
# - name: Delete drafts
# uses: hugo19941994/delete-draft-releases@v1.0.0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish x64
run: yarn run electron-forge --verbose publish --arch x64
- name: Publish arm64
run: yarn run electron-forge --verbose publish --arch arm64
- name: Publish universal
run: yarn run electron-forge --verbose publish --arch universal