Skip to content

Commit bade072

Browse files
committed
ci: added release action
1 parent 0f192e1 commit bade072

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
release:
3+
types:
4+
- published
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup .NET 6 SDK
12+
uses: actions/setup-dotnet@v1
13+
with:
14+
dotnet-version: 6.0.x
15+
- name: Restore Dependencies
16+
run: dotnet restore
17+
- name: Build
18+
run: dotnet build --no-restore
19+
- name: Run Unit Tests
20+
run: dotnet test --no-build --verbosity normal
21+
- name: Create NuGet Package
22+
run: dotnet pack -c Release
23+
- name: Deploy to Public NuGet
24+
run: dotnet nuget push ./bin/Release/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)