Skip to content

Commit c47a97a

Browse files
authored
ci(release): upload checksums of Windows ZIP to GitHub
1 parent f2493af commit c47a97a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ jobs:
6161
- name: Rename binary (linux and macos)
6262
run: mv target/${{ matrix.platform.target }}/release/envfetch target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
6363
if: matrix.platform.os_name != 'Windows-x86_64'
64-
- name: Generate ZIP (Windows)
64+
- name: Generate ZIP and checksum for it (Windows)
6565
run: |
6666
cd target/${{ matrix.platform.target }}/release
6767
tar.exe -a -c -f envfetch-windows-amd64.zip envfetch.exe
68+
shasum -a 256 envfetch-windows-amd64.zip | cut -d ' ' -f 1 > envfetch-windows-amd64.zip.sha256
6869
if: matrix.platform.os_name == 'Windows-x86_64'
6970
- name: Rename binary (windows)
7071
run: mv target/${{ matrix.platform.target }}/release/envfetch.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
@@ -90,8 +91,10 @@ jobs:
9091
files: |
9192
target/debian/envfetch-debian.deb
9293
target/debian/envfetch-debian.deb.sha256
93-
- name: Release Windows archive to GitHub
94+
- name: Release Windows archive and checksum of it to GitHub
9495
uses: softprops/action-gh-release@v1
9596
if: matrix.platform.os_name == 'Windows-x86_64'
9697
with:
97-
files: target/${{ matrix.platform.target }}/release/envfetch-windows-amd64.zip
98+
files: |
99+
target/${{ matrix.platform.target }}/release/envfetch-windows-amd64.zip
100+
target/${{ matrix.platform.target }}/release/envfetch-windows-amd64.zip.sha256

0 commit comments

Comments
 (0)