-
-
Notifications
You must be signed in to change notification settings - Fork 71
114 lines (109 loc) · 3.16 KB
/
deploy.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# SPDX-FileCopyrightText: Simon Schneegans <code@simonschneegans.de>
# SPDX-License-Identifier: CC0-1.0
name: Deploy
on:
push:
tags:
- '**'
jobs:
linux:
name: Deploy for Linux
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: |
sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
npm install
- name: Create Release
run: |
npm run make
- name: Upload Packages
uses: svenstaro/upload-release-action@v2
with:
file: out/make/**/x64/*
tag: ${{ github.ref }}
file_glob: true
windows:
name: Deploy for Windows
runs-on: windows-2022
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
# For some reason cmake.js sometimes skips the build step in CI on Windows in this
# case. So we install and execute cmake.js manually.
run: |
npm install cmake-js -g
npx cmake-js install
npm install
- name: Create Release
run: |
npm run make
- name: Upload Zip
uses: svenstaro/upload-release-action@v2
with:
file: out/make/zip/win32/x64/*
tag: ${{ github.ref }}
file_glob: true
- name: Upload Squirrel Installer
uses: svenstaro/upload-release-action@v2
with:
file: out/make/squirrel.windows/x64/*.exe
tag: ${{ github.ref }}
file_glob: true
macos:
name: Deploy for macOS
strategy:
matrix:
os: [macos-12, macos-14]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
# https://github.com/electron/forge/issues/2807
- run: python3 -m pip install setuptools --break-system-packages
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: |
npm install
npm install appdmg
- name: Add macOS certificates
env:
OSX_CERTIFICATE: ${{ secrets.OSX_CERTIFICATE }}
OSX_CERTIFICATE_PASSWORD: ${{ secrets.OSX_CERTIFICATE_PASSWORD }}
run: |
.github/osx_certificates.sh
- name: Create Release
env:
KANDO_OSX_SIGN: true
KANDO_OSX_NOTARIZE: true
OSX_APP_SPECIFIC_ID: ${{ secrets.OSX_APP_SPECIFIC_ID }}
OSX_APP_SPECIFIC_PASSWORD: ${{ secrets.OSX_APP_SPECIFIC_PASSWORD }}
OSX_TEAM_ID: ${{ secrets.OSX_TEAM_ID }}
run: |
npm run make
- name: Upload DMG
uses: svenstaro/upload-release-action@v2
with:
file: out/make/*.dmg
tag: ${{ github.ref }}
file_glob: true
- name: Upload Zip
uses: svenstaro/upload-release-action@v2
with:
file: out/make/zip/darwin/**/*.zip
tag: ${{ github.ref }}
file_glob: true