From 9c0cbdf1b1aeef4f5919da41eeaa5316f682f2c0 Mon Sep 17 00:00:00 2001 From: "Dixon, Evan" Date: Tue, 10 Jun 2025 12:35:10 -0500 Subject: [PATCH] Only publish to nuget on main --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c89db9..8b76c03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,8 +5,6 @@ on: branches: [ "**" ] pull_request: branches: [ "main" ] - create: - tags: [ "*" ] jobs: build: @@ -84,8 +82,8 @@ jobs: needs: build runs-on: ubuntu-latest - # Only run for tags being created - if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/') + # Only run for main branch + if: github.ref == 'refs/heads/main' steps: