Skip to content

Commit 517c3fc

Browse files
authored
Update build.yml
1 parent ec8043f commit 517c3fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ 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
54+
working-directory: Source/${{ env.SOLUTION_DIR }}
55+
run: |
56+
if [[ "${{ runners.os }}" == 'Linux' ]]; then
57+
find . -name '*.pdb' -delete
58+
elif [[ "${{ runners.os }}" == 'Windows' ]]; then
59+
del /Q /F *.pdb
60+
fi
61+
5362
- uses: vimtor/action-zip@v1
5463
with:
5564
files: ./Source/${{ env.SOLUTION_DIR }}/${{matrix.OUTPUTDIR}}/

0 commit comments

Comments
 (0)