From 279204f6729a8debcd7f8720d3a41fde8d5c56a3 Mon Sep 17 00:00:00 2001 From: Brian Dukes Date: Wed, 22 Jul 2026 14:54:20 +0000 Subject: [PATCH] Switch release event to from created to published Only push the final NuGet package when the release is published. Also, a draft release never triggers the `created` event. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87863b1..b0b58a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ on: - "main" release: types: - - "created" + - "published" permissions: {} @@ -51,7 +51,7 @@ jobs: run: "dotnet restore --locked-mode" - name: "Set version suffix to alpha-${{ github.run_number }}" - if: github.event_name != 'release' || github.event.action != 'created' + if: github.event_name != 'release' || github.event.action != 'published' run: '"VERSION_SUFFIX=alpha-$env:RUN_NUMBER" >> $env:GITHUB_ENV' env: RUN_NUMBER: ${{ github.run_number }}