Skip to content

Commit

Permalink
add release gh action (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <[email protected]>

add goreleaser config

Signed-off-by: yeya24 <[email protected]>
  • Loading branch information
yeya24 authored Mar 9, 2020
1 parent c62397d commit 77b92e2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "release"
on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v1
with:
go-version: 1.13.x
- uses: actions/checkout@v2

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod tidy
builds:
- binary: go-tpc
id: go-tpc
main: ./cmd/go-tpc/
goarch:
- amd64
goos:
- linux
- darwin

archives:
- files:
- none*
wrap_in_directory: false

checksum:
name_template: 'checksums.txt'

0 comments on commit 77b92e2

Please sign in to comment.