Skip to content

Commit 8a4ac33

Browse files
authored
Updated CI to publish on tag
1 parent 515504f commit 8a4ac33

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: CI
22

33
on:
4-
create:
5-
branches:
6-
- release/**
74
push:
5+
tags:
6+
- v*
87
branches:
98
- main
109
paths:
@@ -72,5 +71,5 @@ jobs:
7271
run: dotnet test /p:Configuration=$env:BUILD_CONFIG /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --no-restore --no-build --verbosity normal
7372

7473
- name: Publish
75-
if: startsWith(github.ref, 'refs/heads/release')
74+
if: startsWith(github.ref, 'refs/tags/v')
7675
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)