Skip to content

Commit a9329c1

Browse files
committed
feat: update strong names before publishing
1 parent 1a2c848 commit a9329c1

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,29 @@ jobs:
3030
run: |
3131
dotnet restore ${{ env.SOLUTION_PATH }}
3232
33+
- name: 'Resolve sn.exe location'
34+
id: find-snexe
35+
shell: pwsh
36+
run: |
37+
$SnExeLocation = ./build/findvstool.ps1 -ToolName 'sn.exe'
38+
"path=$SnExeLocation" >> $Env:GITHUB_OUTPUT
39+
3340
- name: 'Build project using dotnet'
3441
shell: pwsh
3542
run: |
3643
dotnet build ${{ env.SOLUTION_PATH }} `
3744
--no-restore `
3845
--configuration ${{ env.BUILD_CONFIGURATION }} `
39-
-p:ContinuousIntegrationBuild=true
46+
-p:ContinuousIntegrationBuild=true `
47+
"-p:Allure_SnExePath=${{ steps.find-snexe.outputs.path }}"
48+
49+
- name: Verify assembly strong names
50+
shell: pwsh
51+
run: |
52+
$SnExe = "${{ steps.find-snexe.outputs.path }}"
53+
Get-ChildItem "./*/bin/${{ env.BUILD_CONFIGURATION }}/*/Allure.*.dll" -Exclude "Allure.SpecFlow*","Allure.Xunit*" | ForEach-Object {
54+
& $SnExe -vf $_.FullName
55+
}
4056
4157
- name: 'Pack project'
4258
shell: pwsh

0 commit comments

Comments
 (0)