Skip to content

Commit 424060a

Browse files
committed
update workflows
1 parent eecb478 commit 424060a

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 }}

0 commit comments

Comments
 (0)