-
-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (54 loc) · 1.55 KB
/
sign-release.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
name: Sign Installer and Release
on:
push:
tags:
- 'v*' # run workflow with any tag that starts with 'v'
jobs:
build:
name: Build on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [16.x]
os: [windows-latest] # or [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Build Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
- name: list all files
run: find dist
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: installer
path: dist/win/*.exe
sign-installer:
name: Sign installer
needs: build
uses: sillsdev/codesign/.github/workflows/sign.yml@v2
with:
artifact: installer
secrets:
certificate: ${{ secrets.CODESIGN_LSDEVSECTIGOEV }}
create-release:
name: Create Release
needs: sign-installer
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: installer
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: *.exe
body: |
Release for version ${{ github.ref }}
draft: true