Skip to content

Commit 92eb367

Browse files
committed
Update dotnet-desktop.yml
1 parent aa3fd90 commit 92eb367

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,31 @@ jobs:
8888
run: zip -9 -r Linux_${{ matrix.target }}.zip publish
8989
working-directory: ./ProcessorLatencyTool/bin/Release/net9.0/linux-${{ matrix.target }}
9090

91-
- name: Upload Built Binaries
91+
- name: Upload Built Binaries (Windows)
92+
if: matrix.os == 'windows-latest'
93+
env:
94+
OS: ${{ matrix.os }}
95+
GH_TOKEN: ${{ secrets.PUBLISHTOKEN }}
96+
GH_REPO: ${{ github.repository }}
97+
run: gh release upload "${{ needs.release.outputs.tag }}" "Windows_${{ matrix.target }}.zip"
98+
working-directory: ./ProcessorLatencyTool/bin/Release/net9.0
99+
100+
- name: Upload Built Binaries (macOS)
101+
if: matrix.os == 'macos-latest'
102+
env:
103+
OS: ${{ matrix.os }}
104+
GH_TOKEN: ${{ secrets.PUBLISHTOKEN }}
105+
GH_REPO: ${{ github.repository }}
106+
run: gh release upload "${{ needs.release.outputs.tag }}" "macOS_${{ matrix.target }}.zip"
107+
working-directory: ./ProcessorLatencyTool/bin/Release/net9.0
108+
109+
- name: Upload Built Binaries (Linux)
110+
if: matrix.os == 'ubuntu-latest'
92111
env:
93112
OS: ${{ matrix.os }}
94113
GH_TOKEN: ${{ secrets.PUBLISHTOKEN }}
95114
GH_REPO: ${{ github.repository }}
96-
run: gh release upload "${{ needs.release.outputs.tag }}" "${{ env.OS }}.zip"
115+
run: gh release upload "${{ needs.release.outputs.tag }}" "Linux_${{ matrix.target }}.zip"
97116
working-directory: ./ProcessorLatencyTool/bin/Release/net9.0
98117

99118
publish:

0 commit comments

Comments
 (0)