Working on github action to build and sign the Windows installer. #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- id: upload_windows | ||
name: Upload Windows Installer | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: windows-installer | ||
$version = Get-Content -Path "installers\version.txt" -First 1 | ||
path: installers/Nortantis-${{ 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: './installers/signed' | ||
- name: Upload Signed Windows Installer | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: signed-windows-installer | ||
$version = Get-Content -Path "installers\version.txt" -First 1 | ||
path: ./installers/signed/Nortantis-${{ version }}.msi | ||