Skip to content

Commit

Permalink
chore(ci): generate checksum for windows release (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
chawyehsu authored Feb 20, 2024
1 parent 0f3b6ca commit 2cffe39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ jobs:
run: |
cd target/${{ matrix.platform.target }}/release
7z a cargo-zigbuild-${{ github.ref_name }}.windows-${{ matrix.platform.arch }}.zip cargo-zigbuild.exe
$sha256 = (Get-FileHash cargo-zigbuild-${{ github.ref_name }}.windows-${{ matrix.platform.arch }}.zip -Algorithm SHA256).Hash.ToLower()
"$sha256 cargo-zigbuild-${{ github.ref_name }}.windows-${{ matrix.platform.arch }}.zip" | Out-File cargo-zigbuild-${{ github.ref_name }}.windows-${{ matrix.platform.arch }}.zip.sha256
cd -
- name: Upload binary to GitHub Release
if: "startsWith(github.ref, 'refs/tags/')"
uses: softprops/action-gh-release@v1
with:
files: |
target/${{ matrix.platform.target }}/release/cargo-zigbuild-*.zip
target/${{ matrix.platform.target }}/release/cargo-zigbuild-*.zip*
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
generate_release_notes: true

Expand Down

0 comments on commit 2cffe39

Please sign in to comment.