Skip to content

Commit

Permalink
Add GitHub Actions workflow to publish NuGet package
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Sep 9, 2021
1 parent ccee3a1 commit bd7051f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: NuGet
on:
push:
tags:
- '*'

jobs:
Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
ref: ${{ github.ref }}

- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Run tests
run: dotnet test -c Release

- name: Package
run: dotnet pack -c Release

- name: Publish
run: dotnet nuget push src/bin/Release/SrcSet.$(echo ${{ github.ref }} | sed 's/refs\/tags\///').nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json

0 comments on commit bd7051f

Please sign in to comment.