Skip to content

Commit 385fb27

Browse files
authored
Create nuget-pack-push.yml
1 parent 8605093 commit 385fb27

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
build:
8+
name: Push ${{ github.ref }} to NUGET
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-dotnet@v1
13+
with:
14+
dotnet-version: '3.1.100'
15+
- run: dotnet build -c Release
16+
- run: dotnet test -c Release
17+
- run: dotnet pack -c Release -o ${GITHUB_WORKSPACE}
18+
- run: dotnet nuget push ${GITHUB_WORKSPACE}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)