-
Notifications
You must be signed in to change notification settings - Fork 24
61 lines (48 loc) · 1.57 KB
/
build-and-sign-windows.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
name: Build and Sign Windows Installer
on:
push:
branches:
- release
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '22'
distribution: 'temurin'
- name: Get Version
shell: pwsh
run: |
$version = Get-Content -Path "installers\version.txt" -First 1
Write-Host "Version: $version"
echo "VERSION=$version" >> $env:GITHUB_ENV
- name: Build Windows Installer
run: |
cd installers
./create_windows_installer.bat
- id: upload_windows
name: Upload Windows Installer
uses: actions/upload-artifact@v4
with:
name: windows-installer
path: installers/Nortantis-${{ env.VERSION }}.msi
- name: Submit Signing Request for Windows Installer
id: sign_windows
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: 'cb1b9ef5-2e6a-442f-acb7-8521004476b5'
project-slug: 'nortantis'
signing-policy-slug: 'release-signing'
github-artifact-id: '${{steps.upload_windows.outputs.artifact-id}}'
wait-for-completion: true
output-artifact-directory: './installers/signed'
- name: Upload Signed Windows Installer
uses: actions/upload-artifact@v4
with:
name: signed-windows-installer
path: ./installers/signed/Nortantis-${{ env.VERSION }}.msi