Skip to content

Commit

Permalink
Merge pull request #19 from KeisukeYamashita/release-binary-with-gore…
Browse files Browse the repository at this point in the history
…leaser

Release binary with goreleaser
  • Loading branch information
ian-bartholomew authored Jun 7, 2021
2 parents 3a881f5 + d8cbd19 commit cb08ac7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: 1.16
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
builds:
- env:
- CGO_ENABLED=0
main: .
goos:
- linux
- darwin
- windows

0 comments on commit cb08ac7

Please sign in to comment.