Skip to content

Commit 0ab012d

Browse files
authored
Fix nuget push on tag creation (#4)
1 parent 4beb90d commit 0ab012d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
name: packages
3838
path: '**/*.nupkg'
3939
- name: Push to nuget.org
40-
if: github.ref == 'refs/heads/main'
40+
if: startsWith(github.ref, 'refs/tags/v')
4141
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY}
4242
env:
4343
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)