Skip to content

Commit 3dfb869

Browse files
committed
Update github workflow
1 parent 0076f69 commit 3dfb869

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,26 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919

20-
- name: Setup .NET
20+
- name: Setup .NET 7.0.x
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: 7.0.x
24+
25+
- name: Setup .NET 8.0.x
2126
uses: actions/setup-dotnet@v4
2227
with:
2328
dotnet-version: 8.0.x
29+
30+
- name: Setup .NET 9.0.x
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: 9.0.x
2434

25-
- name: Display dotnet version
26-
run: dotnet --version
27-
28-
- name: Restore dependencies
29-
run: dotnet restore
30-
working-directory: ${{env.working-directory}}
35+
- name: List installed .NET SDKs
36+
run: dotnet --list-sdks
3137

3238
- name: Build the project
33-
run: dotnet build --configuration Release --no-restore
39+
run: dotnet build --configuration Release
3440
working-directory: ${{env.working-directory}}
3541

3642
- name: Run tests

0 commit comments

Comments
 (0)