Skip to content

Commit

Permalink
Update workflow to publish to nuget.org on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nullforce committed Aug 14, 2022
1 parent 183fab5 commit 37c7d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: dotnet nuget push ./*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json

publish-nuget-org:
if: github.ref_name == 'main'
if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [build, publish-github-package]
steps:
Expand Down

0 comments on commit 37c7d1a

Please sign in to comment.