Skip to content

Commit 6a44d57

Browse files
committed
select correct win release assets
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
1 parent 5772dd5 commit 6a44d57

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build_check.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,19 @@ jobs:
134134

135135

136136

137-
- name: Upload Release Assets
137+
- name: Upload Linux / macOS Release Assets
138138
uses: softprops/action-gh-release@v1
139-
if: startsWith(github.ref, 'refs/tags/')
139+
if: ${{ startsWith(github.ref, 'refs/tags/') && ( startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') ) }}
140140
with:
141141
files: ${{github.workspace}}/build/packages/*
142142
env:
143143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144+
145+
146+
- name: Upload Windows Release Assets
147+
uses: softprops/action-gh-release@v1
148+
if: ${{ startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'windows') }}
149+
with:
150+
files: ${{github.workspace}}/build/openhantek/Release/*
151+
env:
152+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)