Skip to content

Commit

Permalink
Adding auto-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alephnull committed Jul 25, 2020
1 parent 0fa82a0 commit 2796645
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
tags:
- v*
branches:
- 'goreleaser/*'

jobs:
goreleaser:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14

- name: Tag release
if: startsWith(github.ref, 'refs/heads/')
run: git tag $(git describe --tags)

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download

builds:
- env:
- CGO_ENABLED=0
goarch:
- amd64

changelog:
sort: asc
filters:
exclude:
- '^utils:'
- (?i)typo
- (?i)fixup

0 comments on commit 2796645

Please sign in to comment.