Skip to content

Commit

Permalink
release zip instead of binary
Browse files Browse the repository at this point in the history
  • Loading branch information
longfangsong committed Aug 19, 2020
1 parent 71468be commit 42f50ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build & Release

on:
push:
tags:
tags:
- 'v*'

jobs:
Expand All @@ -24,9 +24,9 @@ jobs:
with:
body: ${{ github.event.head_commit.message }}
files: |
autoAPI-windows-amd64.exe
autoAPI-linux-amd64
autoAPI-darwin-amd64
autoAPI-windows-amd64.zip
autoAPI-linux-amd64.zip
autoAPI-darwin-amd64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ clean:
rm -rf ./autoAPI

build-release: generate
GOOS=windows GOARCH=amd64 go build -o autoAPI-windows-amd64.exe
GOOS=darwin GOARCH=amd64 go build -o autoAPI-darwin-amd64
GOOS=linux GOARCH=amd64 go build -o autoAPI-linux-amd64
GOOS=windows GOARCH=amd64 go build -o autoAPI.exe
zip autoAPI-windows-amd64.zip autoAPI.exe
GOOS=darwin GOARCH=amd64 go build -o autoAPI
zip autoAPI-darwin-amd64.zip autoAPI
GOOS=linux GOARCH=amd64 go build -o autoAPI
zip autoAPI-linux-amd64.zip autoAPI

0 comments on commit 42f50ed

Please sign in to comment.