Skip to content

Commit

Permalink
Add goreleaser
Browse files Browse the repository at this point in the history
And github action on tag
  • Loading branch information
guilhem committed Oct 29, 2019
1 parent 66e6c6f commit 1102ade
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
push:
tags:
- '*'

jobs:
release:
name: Goreleaser
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Checkout
uses: actions/checkout@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GO111MODULE: on

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
before:
hooks:
- go mod tidy
builds:
- binary: bump
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 1102ade

Please sign in to comment.