Skip to content

Commit a1f8744

Browse files
author
Jani Giannoudis
committed
2 parents 7d4dd45 + 9fb705e commit a1f8744

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release to NuGet
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 5
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup .NET SDK
15+
uses: actions/setup-dotnet@v1
16+
- name: Build
17+
run: dotnet build -c Release
18+
- name: Test
19+
run: dotnet test -c Release --no-build
20+
- name: Pack nugets
21+
run: dotnet pack -c Release --no-build --output .
22+
- name: Push to NuGet
23+
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)