Skip to content

Commit e5a655b

Browse files
authored
Update build.yml
1 parent 6e8010a commit e5a655b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,17 @@ jobs:
5050
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}}
5151
working-directory: Source/${{ env.SOLUTION_DIR }}
5252

53-
- name: Delete PDB files
53+
- name: Delete PDB files (Linux)
54+
if: runner.os == 'Linux'
5455
working-directory: Source/${{ env.SOLUTION_DIR }}
5556
run: |
56-
if [[ "${{ runner.os }}" == 'Linux' ]]; then
57-
find . -name '*.pdb' -delete
58-
elif [[ "${{ runner.os }}" == 'Windows' ]]; then
59-
del /Q /F *.pdb
60-
fi
57+
find . -name '*.pdb' -delete
58+
59+
- name: Delete PDB files (Windows)
60+
if: runner.os == 'Linux'
61+
working-directory: Source/${{ env.SOLUTION_DIR }}
62+
run: |
63+
del /Q /F *.pdb
6164
6265
- uses: vimtor/action-zip@v1
6366
with:

0 commit comments

Comments
 (0)