Skip to content

Commit 21d1d36

Browse files
committed
Try to use digest from upload-artifact
1 parent 479644c commit 21d1d36

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/build-release.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,25 @@ jobs:
3535
- name: Build
3636
run: .\vstudio-build.bat Release
3737

38-
- name: Generate portable checksum
39-
uses: Huy-Ngo/[email protected]
40-
with:
41-
glob: "build/vstudio/Release/Finestray.exe"
42-
4338
- name: Create portable artifact
39+
id: portable
4440
uses: actions/upload-artifact@v4
4541
with:
4642
name: portable
47-
path: |
48-
build/vstudio/Release/Finestray.exe
49-
build/vstudio/Release/Finestray.exe.sha256
43+
path: build/vstudio/Release/Finestray.exe
5044

51-
- name: Generate installer checksum
52-
uses: Huy-Ngo/[email protected]
53-
with:
54-
glob: "build/vstudio/Finestray-*-win64.exe"
45+
- name: Create portable artifact digest
46+
run: echo ${{ steps.portable.outputs.artifact-digest }} > build/vstudio/Release/Finestray.exe.sha256
5547

5648
- name: Create installer artifact
49+
id: installer
5750
uses: actions/upload-artifact@v4
5851
with:
5952
name: installer
60-
path: |
61-
build/vstudio/Finestray-*-win64.exe
62-
build/vstudio/Finestray-*-win64.exe.sha256
53+
path: build/vstudio/Finestray-*-win64.exe
54+
55+
- name: Create installer artifact digest
56+
run: echo ${{ steps.installer.outputs.artifact-digest }} > "build\vstudio\$((Get-ChildItem .\build\vstudio\Finestray-*-win64.exe).Name).sha256"
6357

6458
- name: Create release
6559
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)