Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
momaek committed Apr 18, 2021
1 parent 0ffff6e commit da20fa1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
on:
create:
tags:
- v*

jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Check out code
uses: actions/checkout@v2

- name: Build Binary
run: make build

- name: Tar
run: make tar

- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
formattag.tar.gz
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ build_m1:
GOOS=darwin GOARCH=arm64 go build -o formattag-arm64 main.go

build: build_x86 build_m1

tar:
tar zcvf formattag.tar.gz formattag-amd64 formattag-arm64

0 comments on commit da20fa1

Please sign in to comment.