Skip to content

Commit

Permalink
feat: add checksum files
Browse files Browse the repository at this point in the history
  • Loading branch information
mul14 committed Apr 19, 2024
1 parent 9660ccf commit 83b97fe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,27 @@ jobs:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
GOOS=$GOOS GOARCH=$GOARCH go build -trimpath -o build/raiden ./cmd/raiden/main.go
go build -ldflags="-s -w" -trimpath -o build/raiden ./cmd/raiden/main.go
cd build
if [[ $GOOS == 'darwin' ]]; then
cp raiden raiden-macos-"$GOARCH"
sha256sum -b raiden-macos-"$GOARCH" > raiden-macos-"$GOARCH".sha256
elif [[ $GOOS == 'windows' ]]; then
mv raiden raiden.exe
sudo apt-get install -y nsis
makensis -NOCD -DARCH="$GOARCH" ${GITHUB_WORKSPACE}/scripts/windows.nsi
sha256sum -b raiden-"$GOOS"-"$GOARCH"-setup.exe > raiden-"$GOOS"-"$GOARCH"-setup.exe.sha256
else
cp raiden raiden-"$GOOS"-"$GOARCH"
sha256sum -b raiden-"$GOOS"-"$GOARCH" > raiden-"$GOOS"-"$GOARCH".sha256
fi
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/raiden-*
files: |
build/raiden-*
build/SHA256SUMS
make_latest: true
generate_release_notes: true

0 comments on commit 83b97fe

Please sign in to comment.