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 : Build Check
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build_check :
10+ runs-on : ubuntu-latest
11+
12+ strategy :
13+ matrix :
14+ dotnet-version : [7.0, 8.0]
15+
16+ steps :
17+ - name : Checkout Main Repository
18+ uses : actions/checkout@v2
19+
20+ - name : Setup .NET Core
21+ uses : actions/setup-dotnet@v2
22+ with :
23+ dotnet-version : ${{ matrix.dotnet-version }}
24+
25+ - name : Build DbSyncKit
26+ run : |
27+ dotnet build -c Release
Original file line number Diff line number Diff line change 1+ name : Build and Publish NuGet Package
2+
3+ on :
4+ release :
5+ types :
6+ - created
7+
8+ jobs :
9+ build_and_publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout Main Repository
14+ uses : actions/checkout@v2
15+ with :
16+ repository : ' DbSyncKit/DbSyncKit'
17+
18+ - name : Setup .NET Core
19+ uses : actions/setup-dotnet@v2
20+ with :
21+ dotnet-version : ' 8.0'
22+
23+ - name : Build and Publish DbSyncKit.DB
24+ run : |
25+ cd DbSyncKit.DB/src
26+ dotnet build -c Release
27+ dotnet pack -c Release
28+ dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_DEPLOY }}
You can’t perform that action at this time.
0 commit comments