diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dff202..d23f2d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: