Skip to content

Commit 96a0ef1

Browse files
committed
nuget
1 parent 1d2a53b commit 96a0ef1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/nuget.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ name: nuget
33
on:
44
push:
55
branches: [ main ]
6-
6+
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10+
env:
11+
DOTNET_VERSION: 8.0.x
12+
FRAMEWORK: net8.0
13+
1014
jobs:
1115
nuget-pack:
1216

@@ -17,16 +21,15 @@ jobs:
1721
- name: Setup .NET
1822
uses: actions/setup-dotnet@v3
1923
with:
20-
dotnet-version: 8.0.x
21-
24+
dotnet-version: ${{ env.DOTNET_VERSION }}
2225
- name: Restore dependencies
2326
run: dotnet restore
2427
- name: Build
25-
run: dotnet build --configuration Release
28+
run: dotnet build --configuration Release --framework ${{ env.FRAMEWORK }}
2629
- name: Test
27-
run: dotnet test --configuration Release
30+
run: dotnet test --configuration Release --framework ${{ env.FRAMEWORK }}
2831
- name: Pack
29-
run: dotnet pack -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --configuration Release
32+
run: dotnet pack -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --configuration Release --framework ${{ env.FRAMEWORK }}
3033

3134
- name: publish nuget packages
3235
run: |

0 commit comments

Comments
 (0)