Skip to content

Commit 63244f5

Browse files
committed
Publish NuGet package when either the deploy branch or a tag is pushed
So that this workflow is MinVer-friendly. * Push the deploy branch ⇒ deploy a pre-release * Push a tag ⇒ deploy a release
1 parent 49197f6 commit 63244f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
publish:
2525
runs-on: macos-latest
2626
needs: test
27-
if: github.ref == 'refs/heads/deploy'
27+
if: github.ref == 'refs/heads/deploy' || startsWith(github.ref, 'refs/tags')
2828
name: Publish NuGet package
2929
steps:
3030
- run: dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"

0 commit comments

Comments
 (0)