-
-
Notifications
You must be signed in to change notification settings - Fork 9
86 lines (68 loc) · 2.26 KB
/
package.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
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
name: Create Installer
on:
workflow_dispatch:
inputs:
version:
description: 'Version number (*.*.*), no prefix'
required: true
type: string
branch:
description: 'the branch to checkout'
required: true
type: string
jobs:
build:
name: Build, package and Sign
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish -p:PublishProfile=FolderProfile.pubxml
#upload the main exe so it can be signed
- name: Upload app exe
id: upload-exe
uses: actions/upload-artifact@v4
with:
name: COMPASS_exe
path: .\src\bin\Publish\win-x64\COMPASS.exe
- name: remove unsigned exe
shell: pwsh
run: rm .\src\bin\Publish\win-x64\COMPASS.exe
- name: Sign app
id: signing-app
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: 2f2c8b60-b250-4dd2-8827-045fa9cc65e6
project-slug: COMPASS
signing-policy-slug: release-signing
github-artifact-id: ${{steps.upload-exe.outputs.artifact-id}}
wait-for-completion: true
output-artifact-directory: .\src\bin\Publish\win-x64\
- name: Package
run: iscc Deployment/install.iss
- name: Upload installer
id: upload-installer
uses: actions/upload-artifact@v4
with:
name: COMPASS_Installer
path: .\Deployment\Versions\${{ inputs.version }}\COMPASS_Setup_${{ inputs.version }}.exe
- name: Sign installer
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: 2f2c8b60-b250-4dd2-8827-045fa9cc65e6
project-slug: COMPASS
signing-policy-slug: release-signing
github-artifact-id: ${{steps.upload-installer.outputs.artifact-id}}
wait-for-completion: false