Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,24 @@ jobs:
cd target/release
$targetPath = Join-Path -Path (Resolve-Path ..\..\dist) -ChildPath $Env:EIPS_BUILD_ARCHIVE
Compress-Archive -Path build-eips.exe -DestinationPath $targetPath
$archivePath = $targetPath
$archiveName = Split-Path -Leaf $archivePath
$sidecarPath = "$archivePath.sha256"
$hash = (Get-FileHash -Algorithm SHA256 -Path $archivePath).Hash.ToLower()
[System.IO.File]::WriteAllText($sidecarPath, "$hash $archiveName`n")
- name: Compress (Unix)
if: matrix.os != 'windows'
env:
EIPS_BUILD_ARCHIVE: dist/build-eips-${{ matrix.os }}.tar.xz
run: |
mkdir dist
tar cavf "$EIPS_BUILD_ARCHIVE" -C target/release build-eips
archive_name=$(basename "$EIPS_BUILD_ARCHIVE")
if [ "${{ matrix.os }}" = "macos" ]; then
(cd dist && shasum -a 256 "$archive_name" > "$archive_name.sha256")
else
(cd dist && sha256sum "$archive_name" > "$archive_name.sha256")
fi
- name: Release
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda
with:
Expand Down
Loading
Loading