Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,10 @@ jobs:
name: Tests Results - Windows Server 2022
path: 'test-results/*.trx'
reporter: dotnet-trx
# Package and upload to MyGet only on pushes to main, not on PRs
- name: .NET Pack
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: dotnet pack Build.csproj --no-build -c Release /p:PackageOutputPath=${env:GITHUB_WORKSPACE}\.nupkgs /p:CI=true
- name: Upload to MyGet
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: dotnet nuget push ${env:GITHUB_WORKSPACE}\.nupkgs\*.nupkg -s https://www.myget.org/F/stackoverflow/api/v2/package -k ${{ secrets.MYGET_API_KEY }}
Loading