Skip to content

Commit 37c7d1a

Browse files
committed
Update workflow to publish to nuget.org on tags
1 parent 183fab5 commit 37c7d1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
run: dotnet nuget push ./*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
6767

6868
publish-nuget-org:
69-
if: github.ref_name == 'main'
69+
if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/')
7070
runs-on: ubuntu-latest
7171
needs: [build, publish-github-package]
7272
steps:

0 commit comments

Comments
 (0)