Skip to content

Commit

Permalink
tweak build
Browse files Browse the repository at this point in the history
  • Loading branch information
hdm committed Aug 13, 2024
1 parent 159a8cf commit 44bfd9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ jobs:
fetch-depth: 0
- name: Build binary
run: |
cp LICENSE.md "$RUNNER_TEMP/LICENSE.md"
VERSION="$(git describe --tags)"
DIR="$(mktemp -d)"
mkdir "$DIR/sshamble"
cp "$RUNNER_TEMP/LICENSE.md" "$DIR/sshamble"
cp LICENSE.md "$DIR/sshamble"
go build -o "$DIR/sshamble" -ldflags "-s -w -X main.Version=$VERSION" -trimpath ./cmd/...
if [ "$GOOS" == "windows" ]; then
( cd "$DIR"; zip sshamble.zip -r sshamble )
Expand Down

0 comments on commit 44bfd9b

Please sign in to comment.