Skip to content

Commit

Permalink
add publish on tag action to push releases to NuGet (#2189)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey authored May 12, 2020
1 parent 692655f commit 3c13a8c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Release to NuGet

on:
push:
tags:
- v*

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 3.1.201

- name: Build with dotnet
run: ./build.sh --linksources=true --verbosity=verbose
shell: bash

- name: Publish to NuGet
run: dotnet nuget push packaging/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
shell: bash

0 comments on commit 3c13a8c

Please sign in to comment.