Skip to content

Commit 6787a67

Browse files
committed
Publish NET 9 only
1 parent 2e0dd14 commit 6787a67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ jobs:
3939
run: dotnet pack --configuration Release --no-build --output ./nupkg
4040

4141
- name: Nuget Login (OIDC + temp API Key)
42+
if: matrix.dotnet-version == '9.x'
4243
uses: Nuget/login@v1
4344
id: login
4445
with:
4546
user: ${{secrets.NUGET_USER}}
4647

4748
- name: Nuget push
49+
if: matrix.dotnet-version == '9.x'
4850
run: dotnet nuget push nupkg/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
4951

5052
- name: Done

0 commit comments

Comments
 (0)