-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (51 loc) · 1.63 KB
/
main.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
name: GHR CI Build
on:
push:
branches:
- dev
- master
jobs:
build-stable:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- uses: nuget/setup-nuget@v1
- run: nuget restore IntifaceGameHapticsRouter.sln
- name: Build app for release
run: msbuild IntifaceGameHapticsRouter\IntifaceGameHapticsRouter.csproj -t:rebuild -property:Configuration=Release
- uses: dlemstra/code-sign-action@v1
with:
certificate: '${{ secrets.NPLABS_WINDOWS_202205_CERT }}'
password: '${{ secrets.NPLABS_WINDOWS_202205_KEY }}'
folder: '.\IntifaceGameHapticsRouter\bin\Release'
recursive: false
files: |
*.exe
*.dll
description: 'Sign Intiface Central Executable'
- name: Build Innosetup Installer
shell: pwsh
env:
BUILD_VERSION: ${{ github.ref_name }}
run: |
iscc .\intiface-ghr-installer.iss
- uses: dlemstra/code-sign-action@v1
with:
certificate: '${{ secrets.NPLABS_WINDOWS_202205_CERT }}'
password: '${{ secrets.NPLABS_WINDOWS_202205_KEY }}'
folder: '.\installer\'
recursive: false
files: |
intiface-game-haptics-router-installer.exe
description: 'Sign Intiface Central Installer'
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: windows-installer
path: |
installer/intiface-game-haptics-router-installer.exe