Skip to content

Commit 5d1d919

Browse files
committed
CI: make publish only trigger on tag push
1 parent 9267a97 commit 5d1d919

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/msbuild.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ jobs:
7272
# A file, directory or wildcard pattern that describes what to upload
7373
path: Debug/*.dll
7474
- name: Set up nuget source
75+
if: startsWith(github.ref, 'refs/tags/v')
7576
run: nuget sources add -Source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -Name github -Username ${{ github.repository_owner }} -Password ${{ github.token }} -StorePasswordInClearText
7677
- name: Publish Nuget to GitHub registry
78+
if: startsWith(github.ref, 'refs/tags/v')
7779
run: nuget push *.nupkg -Source github -SkipDuplicate -NoSymbols
7880
env:
7981
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)