Skip to content

Commit

Permalink
Merge pull request #34 from koenrh/koenrh/goreleaser
Browse files Browse the repository at this point in the history
Add 'release' GitHub Actions workflow
  • Loading branch information
koenrh authored Sep 14, 2019
2 parents a3e1146 + 9b950f7 commit d9fa6b2
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Release

on:
push:
tags:
- "v*"
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: goreleaser
uses: docker://goreleaser/goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --release-notes CHANGELOG.md release
if: success()
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/s3enum
/vendor
/dist
34 changes: 34 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
before:
hooks:
- go mod download

builds:
- env:
- CGO_ENABLED=0

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64

files:
- LICENSE
- README.md
- CHANGELOG.md

checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

0 comments on commit d9fa6b2

Please sign in to comment.