Skip to content

Commit 5df7cd0

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

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,30 @@ 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+
Write-Host "Found '$SnExeLocation'"
39+
"path=$SnExeLocation" >> $Env:GITHUB_OUTPUT
40+
3341
- name: 'Build project using dotnet'
3442
shell: pwsh
3543
run: |
3644
dotnet build ${{ env.SOLUTION_PATH }} `
3745
--no-restore `
3846
--configuration ${{ env.BUILD_CONFIGURATION }} `
39-
-p:ContinuousIntegrationBuild=true
47+
-p:ContinuousIntegrationBuild=true `
48+
"-p:Allure_SnExePath=${{ steps.find-snexe.outputs.path }}"
49+
50+
- name: Verify assembly strong names
51+
shell: pwsh
52+
run: |
53+
$SnExe = "${{ steps.find-snexe.outputs.path }}"
54+
Get-ChildItem "./*/bin/*/*/Allure.*.dll" -Exclude "Allure.SpecFlow*","Allure.Xunit*" | ForEach-Object {
55+
& $SnExe -vf $_.FullName
56+
}
4057
4158
- name: 'Pack project'
4259
shell: pwsh
@@ -48,11 +65,6 @@ jobs:
4865
"-p:PackageReleaseNotes=${{ github.event.release.html_url }}" `
4966
"-p:PackageOutputPath=${{ github.workspace }}/${{ env.PACKAGE_OUTPUT_PATH }}"
5067
51-
- name: 'NuGet publish'
52-
shell: pwsh
53-
run: |
54-
dotnet nuget push "${{ env.PACKAGE_OUTPUT_PATH }}/*.nupkg" `
55-
-k ${NUGET_TOKEN} `
56-
-s https://api.nuget.org/v3/index.json
57-
env:
58-
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
68+
- uses: actions/upload-artifact@v4
69+
with:
70+
path: ${{ github.workspace }}/${{ env.PACKAGE_OUTPUT_PATH }}

0 commit comments

Comments
 (0)