Commit 96a0ef1 1 parent 1d2a53b commit 96a0ef1 Copy full SHA for 96a0ef1
File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ name: nuget
3
3
on :
4
4
push :
5
5
branches : [ main ]
6
-
6
+
7
7
# Allows you to run this workflow manually from the Actions tab
8
8
workflow_dispatch :
9
9
10
+ env :
11
+ DOTNET_VERSION : 8.0.x
12
+ FRAMEWORK : net8.0
13
+
10
14
jobs :
11
15
nuget-pack :
12
16
@@ -17,16 +21,15 @@ jobs:
17
21
- name : Setup .NET
18
22
uses : actions/setup-dotnet@v3
19
23
with :
20
- dotnet-version : 8.0.x
21
-
24
+ dotnet-version : ${{ env.DOTNET_VERSION }}
22
25
- name : Restore dependencies
23
26
run : dotnet restore
24
27
- name : Build
25
- run : dotnet build --configuration Release
28
+ run : dotnet build --configuration Release --framework ${{ env.FRAMEWORK }}
26
29
- name : Test
27
- run : dotnet test --configuration Release
30
+ run : dotnet test --configuration Release --framework ${{ env.FRAMEWORK }}
28
31
- 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 }}
30
33
31
34
- name : publish nuget packages
32
35
run : |
You can’t perform that action at this time.
0 commit comments