-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (39 loc) · 1.46 KB
/
release.yaml
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
name: Create Manual Tag
on:
# push:
# # Sequence of patterns matched against refs/tags
# tags:
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch:
jobs:
# ┌────────────────────────────────────┐
# │ │
# │ Build MacOS / Windows │
# │ │
# └────────────────────────────────────┘
build:
name: Build Applications
# Use a matrix of multiple Operating Systems
strategy:
matrix:
os: [macOS-latest, windows-latest]
# Use each OS
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
env:
CSC_IDENTITY_AUTO_DISCOVERY: false
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GITHUB_TOKEN }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}