Skip to content

Commit

Permalink
chore: Add push to nuget on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
toby.henderson committed Mar 24, 2021
1 parent 8b59c24 commit 27a03c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY_OWNER: ${{ github.repository_owner }}

release:
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [package]
steps:
- uses: actions/download-artifact@v2
with:
name: nuget packages
- name: Push generated package to NuGet
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate

memory:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 27a03c7

Please sign in to comment.