Skip to content

Commit 2f16350

Browse files
committed
Upload signed artifact for Windows
Signed-off-by: Michael Herger <[email protected]>
1 parent 83b6e5f commit 2f16350

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/actions/build/action.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ runs:
163163

164164
- name: Archive artifacts
165165
if: ${{ !startsWith(inputs.build-params, 'docker') }}
166-
uses: actions/upload-artifact@v4
166+
uses: actions/upload-artifact@v6
167167
id: upload-artifact
168168
with:
169169
name: ${{ inputs.build-params }}
@@ -182,8 +182,15 @@ runs:
182182
wait-for-completion: true
183183
output-artifact-directory: publish
184184

185-
- shell: bash
186-
run: ls -al publish/
185+
- name: Calculate hash for signed Windows binary
186+
if: ${{ startsWith(inputs.build-params, 'win64') }}
187+
shell: bash
188+
run: |
189+
cd publish
190+
for f in LyrionMusicServer_v*exe;
191+
do
192+
md5sum $f > $f.md5
193+
done
187194
188195
- name: Upload artifacts to R2
189196
if: false

.github/workflows/00_build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ jobs:
170170
SIGNPATH_SIGNING_POLICY_SLUG: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
171171
SIGNPATH_ARTIFACT_CONFIG_SLUG: ${{ vars.SIGNPATH_ARTIFACT_CONFIG_SLUG }}
172172

173+
- name: Archive signed Windows artifact
174+
# nees to be run here as the above build action can't run upload twice
175+
uses: actions/upload-artifact@v6
176+
id: upload-artifact
177+
with:
178+
name: win64-signed
179+
path: publish/
180+
173181
updateRepoFile:
174182
name: Trigger repository file update
175183
if: false

0 commit comments

Comments
 (0)