Skip to content

Commit baac6c7

Browse files
authored
Update publish-nuget.yml
1 parent df9f292 commit baac6c7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
dotnet-version: [8.0.x, 9.0.x]
1114

1215
steps:
1316
- name: Checkout repository
@@ -16,12 +19,12 @@ jobs:
1619
- name: Setup .NET
1720
uses: actions/setup-dotnet@v2
1821
with:
19-
dotnet-version: '8.0.x'
22+
dotnet-version: ${{ matrix.dotnet-version }}
2023

2124
- name: Restore dependencies
2225
run: dotnet restore src/UnoKeyboard/UnoKeyboard.csproj
2326

24-
- name: Build project
27+
- name: Build project with .NET ${{ matrix.dotnet-version }}
2528
run: dotnet build src/UnoKeyboard/UnoKeyboard.csproj --configuration Release
2629

2730
- name: List packaged files
@@ -30,4 +33,4 @@ jobs:
3033
- name: Publish to NuGet
3134
env:
3235
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
33-
run: dotnet nuget push src/UnoKeyboard/Packages/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
36+
run: dotnet nuget push src/UnoKeyboard/Packages/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)