Skip to content

Commit

Permalink
Also build on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sblom committed Dec 24, 2020
1 parent 33bd793 commit b3ea2ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: dotnet
on:
push:
branches: [ main ]
tags: ["*"]
pull_request:
branches: [ main ]

Expand Down Expand Up @@ -65,7 +66,7 @@ jobs:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: nuget push
run: dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push *.nupkg *.snupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}

nuget-push-prod:
runs-on: ubuntu-latest
Expand All @@ -84,4 +85,4 @@ jobs:
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}

- run: dotnet nuget push nugets/*.nupkg --skip-duplicate
- run: dotnet nuget push *.nupkg *.snupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }}

0 comments on commit b3ea2ce

Please sign in to comment.