From 1ccf73f443f6cd3617a7a9532864ee3d00382e8a Mon Sep 17 00:00:00 2001 From: Jan Hajek Date: Fri, 5 Jun 2020 10:30:46 +0200 Subject: [PATCH] xxx --- .github/workflows/tag.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 4d8ddd09..5b0e736c 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -1,16 +1,9 @@ name: Upload build asset on: -# push: -# # Sequence of patterns matched against refs/tags -# tags: -# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - push: - branches: [ master ] - pull_request: - branches: [ master ] - + tags: + - 'v*' jobs: build: @@ -24,9 +17,19 @@ jobs: - name: Build project for linux run: env GOOS=linux GOARCH=amd64 go build -o zcli-linux ./main.go + - name: Compress linux binary + uses: svenstaro/upx-action@v1-release + with: + file: ./zcli-linux + - name: Build project for mac run: env GOOS=darwin GOARCH=amd64 go build -o zcli-mac ./main.go + - name: Compress mac binary + uses: svenstaro/upx-action@v1-release + with: + file: ./zcli-mac + - name: Create release id: create_release uses: actions/create-release@v1