Skip to content

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

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

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

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

Check failure on line 32 in .github/workflows/build-and-sign-windows.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-sign-windows.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
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