Skip to content

Commit 57a3f30

Browse files
committed
Fix double publish.
1 parent eee0e96 commit 57a3f30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ jobs:
4646
publish:
4747
needs: build
4848
runs-on: ubuntu-latest
49-
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/tags/'))
49+
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/tags/'))
5050
permissions:
5151
contents: read
5252
id-token: write
5353

5454
steps:
5555
- name: Checkout
56-
uses: actions/checkout@v4
56+
uses: actions/checkout@v5
5757
with:
5858
fetch-depth: 0
5959

6060
- name: Setup .NET
61-
uses: actions/setup-dotnet@v4
61+
uses: actions/setup-dotnet@v5
6262
with:
6363
dotnet-version: "10.0.x"
6464

@@ -102,7 +102,7 @@ jobs:
102102
user: potatman
103103

104104
- name: Push to NuGet.org
105-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
105+
if: startsWith(github.ref, 'refs/tags/')
106106
run: |
107107
dotnet nuget push "./artifacts/*.nupkg" \
108108
--api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} \

0 commit comments

Comments
 (0)