From 8a4ac335f6a9ddc3ca3694b5e75218eb6823ab01 Mon Sep 17 00:00:00 2001 From: James Croft Date: Wed, 20 Oct 2021 11:39:56 +0100 Subject: [PATCH] Updated CI to publish on tag --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 673e53aa..691570af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,9 @@ name: CI on: - create: - branches: - - release/** push: + tags: + - v* branches: - main paths: @@ -72,5 +71,5 @@ jobs: run: dotnet test /p:Configuration=$env:BUILD_CONFIG /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --no-restore --no-build --verbosity normal - name: Publish - if: startsWith(github.ref, 'refs/heads/release') + if: startsWith(github.ref, 'refs/tags/v') run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}