Skip to content

Commit e358062

Browse files
committed
publish seperate builds for .net6 and .net7
1 parent 1b0cd30 commit e358062

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ jobs:
3535
- name: Test
3636
run: dotnet test
3737

38-
- name: Publish the application binaries
39-
run: dotnet publish -c Release -o ./artifacts -p:Version=${{ steps.version.outputs.full_without_prefix }}
38+
- name: Publish the application binaries (.net6)
39+
run: dotnet publish -c Release -o ./artifacts/net6 -f net6.0 -p:Version=${{ steps.version.outputs.full_without_prefix }}
40+
- name: Publish the application binaries (.net7)
41+
run: dotnet publish -c Release -o ./artifacts/net7 -f net7.0 -p:Version=${{ steps.version.outputs.full_without_prefix }}
4042
- name: Create nuget package
4143
run: dotnet pack -c Release -o ./artifacts -p:Version=${{ steps.version.outputs.full_without_prefix }}
4244

0 commit comments

Comments
 (0)