Skip to content

Commit 7c6b1ad

Browse files
committed
Add sha256 artifacts of portable and installer
1 parent 3554574 commit 7c6b1ad

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,24 @@ jobs:
3939
uses: actions/upload-artifact@v4
4040
with:
4141
name: portable
42-
path: build/vstudio/Release/Finestray.exe
42+
path: build/vstudio/Release/Finestray.exe*
43+
44+
- name: Create portable artifact digest
45+
run: $files = Get-ChildItem -Path .\build\vstudio\Release -Filter "*.exe"; foreach ($file in $files) { $hash = Get-FileHash $file.FullName; Out-File -FilePath "$($hash.Path).sha256" -InputObject $hash.Hash }
4346

4447
- name: Create installer artifact
4548
uses: actions/upload-artifact@v4
4649
with:
4750
name: installer
48-
path: build/vstudio/Finestray-*-win64.exe
51+
path: build/vstudio/Finestray-*-win64.exe*
52+
53+
- name: Create installer artifact digest
54+
run: $files = Get-ChildItem -Path .\build\vstudio -Filter "*.exe"; foreach ($file in $files) { $hash = Get-FileHash $file.FullName; Out-File -FilePath "$($hash.Path).sha256" -InputObject $hash.Hash }
4955

5056
- name: Create release
5157
if: startsWith(github.ref, 'refs/tags/')
5258
uses: ncipollo/[email protected]
5359
with:
5460
artifactErrorsFailBuild: true
55-
artifacts: "build/vstudio/Release/Finestray.exe, build/vstudio/Finestray-*-*.exe"
61+
artifacts: "build/vstudio/Release/Finestray.exe*, build/vstudio/Finestray-*-win64.exe*"
5662
generateReleaseNotes: true

0 commit comments

Comments
 (0)