Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,26 @@ jobs:
throw "Windows Azure Trusted Signing is missing required environment values: $($missing -join ', ')"
}

- name: Prepare Azure Trusted Signing module
shell: pwsh
run: |
$moduleVersion = "0.5.8"
$moduleRoot = Join-Path $env:RUNNER_TEMP "trusted-signing-modules"
New-Item -ItemType Directory -Path $moduleRoot -Force | Out-Null
Save-Module `
-Name TrustedSigning `
-RequiredVersion $moduleVersion `
-Repository PSGallery `
-Path $moduleRoot `
-Force

$env:PSModulePath = "$moduleRoot$([IO.Path]::PathSeparator)$env:PSModulePath"
"PSModulePath=$env:PSModulePath" |
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

Import-Module TrustedSigning -RequiredVersion $moduleVersion -Force
Get-Command Invoke-TrustedSigning -ErrorAction Stop | Out-Null

- name: Build Windows installer
env:
THREADLINES_DESKTOP_SIGNED: ${{ vars.THREADLINES_DESKTOP_SIGNED == 'true' && 'true' || 'false' }}
Expand Down
Loading