File tree Expand file tree Collapse file tree 2 files changed +1
-40
lines changed
Expand file tree Collapse file tree 2 files changed +1
-40
lines changed Original file line number Diff line number Diff line change 9494 }
9595 env :
9696 NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
97-
98- publish-github :
99- needs : build-and-test
100- runs-on : windows-latest
101- if : github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
102-
103- steps :
104- - name : Download NuGet package artifact
105- uses : actions/download-artifact@v4
106- with :
107- name : nuget-package
108- path : ./packages
109-
110- - name : Setup .NET
111- uses : actions/setup-dotnet@v4
112- with :
113- dotnet-version : ${{ env.DOTNET_VERSION }}
114-
115- - name : Verify packages exist
116- run : |
117- if (-not (Test-Path "./packages/*.nupkg")) {
118- Write-Error "No .nupkg files found in ./packages directory"
119- Get-ChildItem -Path "./packages" -Recurse
120- exit 1
121- }
122- Write-Host "Found packages:"
123- Get-ChildItem -Path "./packages" -Filter "*.nupkg"
124-
125- - name : Publish to GitHub Packages
126- run : |
127- $nupkgFiles = Get-ChildItem -Path "./packages" -Filter "*.nupkg"
128- foreach ($file in $nupkgFiles) {
129- dotnet nuget push $file.FullName `
130- --api-key ${{ secrets.GITHUB_TOKEN }} `
131- --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json `
132- --skip-duplicate
133- }
134- env :
135- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11<Project >
22 <PropertyGroup >
3- <Version >1.0.5 </Version >
3+ <Version >1.0.6 </Version >
44 <CheckForOverflowUnderflow >false</CheckForOverflowUnderflow >
55 <AllowUnsafeBlocks >true</AllowUnsafeBlocks >
66 <LangVersion >preview</LangVersion >
You can’t perform that action at this time.
0 commit comments