Skip to content

Commit 0a1e33f

Browse files
committed
refactor(build-release.yml): use Powershell to create dev .snk key, pin image versions
1 parent 0603662 commit 0a1e33f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: windows-latest
11+
timeout-minutes: 10
12+
runs-on: windows-2022
1213
steps:
1314
- uses: actions/checkout@v3
1415

@@ -27,8 +28,10 @@ jobs:
2728
- name: Create development strong name key
2829
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
2930
run: |
30-
dotnet tool install -g CreateStrongNameKey
31-
CreateStrongNameKey -f Key.snk
31+
Add-Type -AssemblyName System.Security
32+
$keyPair = New-Object System.Security.Cryptography.RSACryptoServiceProvider(2048)
33+
$keyBlob = $keyPair.ExportCspBlob($true)
34+
[System.IO.File]::WriteAllBytes("Key.snk", $keyBlob)
3235
shell: pwsh
3336

3437
- name: Decode signing key for releases
@@ -62,7 +65,7 @@ jobs:
6265
run: nuget restore FunscriptPreviewHandler.csproj
6366

6467
- name: Build solution
65-
run: msbuild FunscriptPreviewHandler.csproj /p:Configuration=Release
68+
run: dotnet build FunscriptPreviewHandler.csproj --configuration Release
6669

6770
- name: Install Inno Setup
6871
run: |

0 commit comments

Comments
 (0)