From 15e7643e73aca5450b2b69da7e02171ddebebb92 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Fri, 9 Feb 2024 17:15:09 -0700 Subject: [PATCH] - Only run final CI step if triggered by a "release" --- .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"