@@ -13,8 +13,8 @@ permissions:
1313 contents : read
1414
1515jobs :
16- build :
17- runs-on : ubuntu -latest
16+ publish :
17+ runs-on : windows -latest
1818 steps :
1919 - uses : actions/checkout@v4
2020
@@ -26,32 +26,50 @@ jobs:
2626 6.0.x
2727
2828 - name : ' Restore packages'
29+ shell : pwsh
2930 run : |
3031 dotnet restore ${{ env.SOLUTION_PATH }}
3132
32- # Use AspectInjector 2.8.2 which, unlike 2.8.1, correctly sets PdbChecksum
33- # The only reason we're still referencing 2.8.1 from projects is that
34- # 2.8.2 doesn't work well on Mac OS ARM
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+
3541 - name : ' Build project using dotnet'
42+ shell : pwsh
43+ run : |
44+ dotnet build ${{ env.SOLUTION_PATH }} `
45+ --no-restore `
46+ --configuration ${{ env.BUILD_CONFIGURATION }} `
47+ -p:ContinuousIntegrationBuild=true `
48+ "-p:Allure_SnExePath=${{ steps.find-snexe.outputs.path }}"
49+
50+ - name : Verify assembly strong names
51+ shell : pwsh
3652 run : |
37- dotnet build ${{ env.SOLUTION_PATH }}\
38- --no-restore\
39- --configuration ${{ env.BUILD_CONFIGURATION }}\
40- -p:ContinuousIntegrationBuild=true\
41- "-p:AspectInjector_Location=${{ github.workspace }}/build/AspectInjector/linux-x64/AspectInjector"
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+ }
4257
4358 - name : ' Pack project'
59+ shell : pwsh
4460 run : |
45- dotnet pack ${{ env.SOLUTION_PATH }}\
46- --no-restore\
47- --no-build\
48- --configuration ${{ env.BUILD_CONFIGURATION }}\
61+ dotnet pack ${{ env.SOLUTION_PATH }} `
62+ --no-restore `
63+ --no-build `
64+ --configuration ${{ env.BUILD_CONFIGURATION }} `
65+ "-p:PackageReleaseNotes=${{ github.event.release.html_url }}" `
4966 "-p:PackageOutputPath=${{ github.workspace }}/${{ env.PACKAGE_OUTPUT_PATH }}"
5067
5168 - name : ' NuGet publish'
69+ shell : pwsh
5270 run : |
53- dotnet nuget push "${{ env.PACKAGE_OUTPUT_PATH }}/*.nupkg"\
54- -k ${NUGET_TOKEN}\
71+ dotnet nuget push "${{ env.PACKAGE_OUTPUT_PATH }}/*.nupkg" `
72+ -k ${NUGET_TOKEN} `
5573 -s https://api.nuget.org/v3/index.json
5674 env :
5775 NUGET_TOKEN : ${{ secrets.NUGET_TOKEN }}
0 commit comments