From 6417baa081c7aa41e0a5588f520cb44811d61fec Mon Sep 17 00:00:00 2001 From: christian <6939810+chkr1011@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:08:29 +0200 Subject: [PATCH] Fix nuget publish --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 534e27a6..d612b716 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,8 @@ jobs: run: dotnet nuget push ${{ github.workspace }}/nugets/**/*.nupkg -k ${{ secrets.MYGET_API_KEY }} -s https://www.myget.org/F/mqttnet/api/v3/index.json --skip-duplicate publish-nuget: - if: ${{ github.event_name == 'published' }} + # Tag schema is 'v5.0.0-rc' etc. + if: startsWith(github.ref, 'refs/tags/v') needs: [sign, test] runs-on: ubuntu-latest