diff options
author | xEgoist <egoist@egoistic.dev> | 2022-03-21 11:54:40 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2023-07-09 10:14:03 -0400 |
commit | 8d464e5c78510502cd1cf1d205c82df5de183825 (patch) | |
tree | 291f412d46e2b034edf621b702973fb68a3b9b94 | |
parent | d67809d6c4bcd30d0864b23d415f79221f871797 (diff) |
ci/release: add sha256 sums to release artifacts
Fixes #1924, Closes #2168
-rw-r--r-- | .github/workflows/release.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7903d9e7..bde40c7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -153,16 +153,20 @@ jobs: if [ "${{ matrix.os }}" = "windows-2022" ]; then cp "target/${{ matrix.target }}/release/rg.exe" "$staging/" 7z a "$staging.zip" "$staging" + certutil -hashfile "$staging.zip" SHA256 > "$staging.zip.sha256" echo "ASSET=$staging.zip" >> $GITHUB_ENV + echo "ASSET_SUM=$staging.zip.sha256" >> $GITHUB_ENV else # The man page is only generated on Unix systems. ¯\_(ツ)_/¯ cp "$outdir"/rg.1 "$staging/doc/" cp "target/${{ matrix.target }}/release/rg" "$staging/" tar czf "$staging.tar.gz" "$staging" + shasum -a 256 "$staging.tar.gz" > "$staging.tar.gz.sha256" echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV + echo "ASSET_SUM=$staging.tar.gz.sha256" >> $GITHUB_ENV fi - name: Upload release archive env: GH_TOKEN: ${{ github.token }} - run: gh release upload ${{ needs.create-release.outputs.rg_version }} ${{ env.ASSET }} + run: gh release upload ${{ needs.create-release.outputs.rg_version }} ${{ env.ASSET }} ${{ env.ASSET_SUM }} |