Skip to content

Commit

Permalink
Create nuget-pack-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
egil authored Dec 13, 2019
1 parent 8605093 commit 385fb27
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/nuget-pack-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI
on:
push:
tags:
- '*'
jobs:
build:
name: Push ${{ github.ref }} to NUGET
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.100'
- run: dotnet build -c Release
- run: dotnet test -c Release
- run: dotnet pack -c Release -o ${GITHUB_WORKSPACE}
- run: dotnet nuget push ${GITHUB_WORKSPACE}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 385fb27

Please sign in to comment.