-
-
Notifications
You must be signed in to change notification settings - Fork 295
39 lines (35 loc) · 979 Bytes
/
package.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
name: Create packages
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build:
strategy:
matrix:
image: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.image }}
env:
CSC_IDENTITY_AUTO_DISCOVERY: true
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies (Node.js)
run: npm ci
- name: Build electron app
run: npm run build:electron
- name: build package
run: npx electron-builder build --x64 --arm64 --publish always
- name: Upload built packages
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.image }}
path: release/