Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-hajek committed Jun 5, 2020
1 parent 7e3310d commit 1ccf73f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 1ccf73f

Please sign in to comment.