chore: update release github actions

pull/83/head
ᴍᴏᴏɴD4ʀᴋ 4 years ago
parent 9426ce6ef5
commit c6d76705c0
  1. 3
      .github/workflows/release.yml

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

Loading…
Cancel
Save