Skip to content

Commit

Permalink
Windows .exe extension
Browse files Browse the repository at this point in the history
  • Loading branch information
zomglings committed Aug 19, 2023
1 parent 90dd584 commit bfdf42e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ jobs:
GOARCH: ${{ matrix.arch }}
run: |
BUILD_DIR="waggle-${{ github.ref_name }}-${GOOS}-${GOARCH}"
EXTENSION=""
if [ "$GOOS" = "windows" ]; then
EXTENSION=".exe"
fi
mkdir "$BUILD_DIR"
cp README.md "$BUILD_DIR/README.md"
go build -o "$BUILD_DIR/waggle" ./...
go build -o "$BUILD_DIR/waggle${EXTENSION}" ./...
zip -r "$BUILD_DIR.zip" "$BUILD_DIR"
- name: Upload release asset for each valid (GOOS, GOARH) pair
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit bfdf42e

Please sign in to comment.