Skip to content

Working on github action to build and sign the Windows installer. #5

Working on github action to build and sign the Windows installer.

Working on github action to build and sign the Windows installer. #5

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: Build Windows Installer
run: |
cd installer
./create_windows_installer.bat
Write-Host "Version: $env:nortantis_version"
echo "VERSION=$env:nortantis_version" >> $GITHUB_ENV
- id: upload_windows
name: Upload Windows Installer
uses: actions/upload-artifact@v4
with:
name: windows-installer
path: installer/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: 'test-signing'
github-artifact-id: '${{steps.upload_windows.outputs.artifact-id}}'
wait-for-completion: true
output-artifact-directory: './installer/signed'
- name: Upload Signed Windows Installer
uses: actions/upload-artifact@v4
with:
name: signed-windows-installer
path: ./installer/signed/Nortantis-${{ env.VERSION }}.msi