From 2f6bedca82f487976a546a5315bd0e2c166d0830 Mon Sep 17 00:00:00 2001 From: Ilya Kochetkov Date: Sat, 18 Jul 2026 19:29:11 +0400 Subject: [PATCH] restrict NuGet publish job to version tags only --- .github/workflows/ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 349473d..3e5a169 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -38,7 +38,7 @@ jobs: release: name: Pack & Publish NuGet needs: test - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: