Skip to content

Commit 085f7b1

Browse files
authored
Update dotnet.yml
1 parent 0ee1aa1 commit 085f7b1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,16 @@ jobs:
4444
run: dotnet test
4545
working-directory: Source/${{ env.SOLUTION_DIR }}
4646

47-
- name: Publish
47+
- name: Publish (Linux)
48+
if: runner.os == 'Linux'
49+
run: dotnet publish ${{ env.PROJECT }} -c Release -o ${{matrix.OUTPUTDIR}} -r ${{matrix.RUNTIMEID}}
50+
working-directory: Source/${{ env.SOLUTION_DIR }}
51+
52+
- name: Publish (Windows)
53+
if: runner.os == 'Windows'
4854
run: dotnet publish ${{ env.PROJECT }} -c Release -o ${{matrix.OUTPUTDIR}} -p:PublishReadyToRun=true --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:UseAppHost=true -r ${{matrix.RUNTIMEID}}
4955
working-directory: Source/${{ env.SOLUTION_DIR }}
50-
56+
5157
- uses: vimtor/action-zip@v1
5258
with:
5359
files: ./Source/${{ env.SOLUTION_DIR }}/${{matrix.OUTPUTDIR}}/

0 commit comments

Comments
 (0)