Skip to content

Commit 611bfe7

Browse files
committed
Skip branch check for NuGet push.
1 parent 839ef27 commit 611bfe7

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v4
1412
- name: Setup .NET
1513
uses: actions/setup-dotnet@v4
1614
with:
@@ -28,9 +26,5 @@ jobs:
2826
- name: Publish to NuGet
2927
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
3028
run: |
31-
# Ensure the tag is on the master branch.
32-
git branch --remote --contains | grep origin/master
33-
34-
# Push to NuGet.
3529
dotnet nuget push ./artifacts/packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
3630
dotnet nuget push ./artifacts/packages/*.snupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)