From f7706b83483c4f13b905ecaace1124ae9bb0903a Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 12 Feb 2024 11:10:30 -0700 Subject: [PATCH] - Only run final CI step if triggered by a "release" (#64) --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2dc9c1..3b4c2c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,7 +70,9 @@ jobs: - name: Publish to NuGet run: make publish key=${{ secrets.NUGET_API_KEY }} + # If triggered by a release, upload the NuGet package to the release - name: Upload NuGet package to release + if: github.event_name == 'release' uses: AButler/upload-release-assets@v3.0 with: files: "*.nupkg"