chore: update release github actions

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ 2020-06-29 16:35:53 +08:00
parent 9426ce6ef5
commit c6d76705c0
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ jobs:
run: echo "::set-env name=RELEASE::hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit"
- uses: actions/checkout@v2
- name: Build ${{ matrix.goos }}/${{ matrix.arch }}
run: go build -o ${{ matrix.bin }}
run: go build -ldflags '-w -s' -o ${{ matrix.bin }}
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.arch }}
@ -71,6 +71,7 @@ jobs:
echo "Creating release $RELEASE_DIR"
for BINARY in $RELEASE_DIR/*
do
chmod 777 $BINARY;
cp $BINARY .;
zip -r releases/$(basename $RELEASE_DIR).zip \
$(basename ${BINARY}) \