File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches : [master]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Setup .NET
14+ uses : actions/setup-dotnet@v4
15+ with :
16+ dotnet-version : ' 9.x'
17+
18+ - name : Restore
19+ run : dotnet restore CorePush.sln
20+
21+ - name : Build
22+ run : dotnet build CorePush.sln --no-restore
Original file line number Diff line number Diff line change 1+ name : Publish to NuGet
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Setup .NET
14+ uses : actions/setup-dotnet@v4
15+ with :
16+ dotnet-version : ' 9.x'
17+
18+ - name : Restore
19+ run : dotnet restore CorePush.sln
20+
21+ - name : Build
22+ run : dotnet build CorePush.sln --no-restore -c Release
23+
24+ - name : Pack CorePush
25+ run : dotnet pack CorePush/CorePush.csproj --no-build -c Release -o out
26+
27+ - name : Push to NuGet
28+ run : dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments