Skip to content

Commit b98eba0

Browse files
committed
Push to nuget on new release
1 parent 9bdcaf3 commit b98eba0

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/nuget.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Nuget
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
push:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup dotnet
11+
uses: actions/setup-dotnet@v1
12+
with:
13+
dotnet-version: |
14+
5.x
15+
6.x
16+
- name: Install dependencies
17+
run: dotnet restore
18+
- name: Build
19+
run: dotnet build --configuration Release --no-restore
20+
- name: Pack
21+
run: dotnet pack -c Release -o out
22+
- name: Push
23+
run: dotnet nuget push ./out/*.nupkg -k ${NUGET_TOKEN}
24+
env:
25+
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}

.github/workflows/xunit.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on: [push]
33
jobs:
44
test:
55
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
dotnet-version: [ '5.x', '6.x' ]
96
steps:
107
- uses: actions/checkout@v2
118
- name: Setup dotnet

0 commit comments

Comments
 (0)