Skip to content

Commit c7ba0e5

Browse files
Update main.yml
1 parent e092619 commit c7ba0e5

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,25 @@ jobs:
2323
run: dotnet restore
2424

2525
- name: Publish (win-x64, single-file, trimmed)
26-
run: dotnet publish -c Release -f net10.0-windows10.0.19041.0 -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=link -o publish
26+
run: |
27+
dotnet publish `
28+
-c Release `
29+
-f net10.0-windows10.0.19041.0 `
30+
-r win-x64 `
31+
--self-contained true `
32+
--no-restore `
33+
-p:PublishSingleFile=true `
34+
-p:PublishTrimmed=true `
35+
-p:TrimMode=link `
36+
-p:DebugType=None `
37+
-p:DebugSymbols=false `
38+
-o publish
2739
28-
- name: Upload artifact
40+
- name: Remove PDB files
41+
run: Remove-Item publish\*.pdb -ErrorAction SilentlyContinue
42+
43+
- name: Upload EXE only
2944
uses: actions/upload-artifact@v4
3045
with:
31-
name: win-x64-publish
32-
path: publish/**
46+
name: win-x64-exe
47+
path: publish\*.exe

0 commit comments

Comments
 (0)