Skip to content

Commit

Permalink
Merge pull request #15 from CamiloGarciaLaRotta/config/goreleaser
Browse files Browse the repository at this point in the history
config: goreleaser for Homebrew
  • Loading branch information
CamiloGarciaLaRotta authored Oct 28, 2020
2 parents 2ca4318 + 83ab186 commit dc52961
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:
tags:
- 'v*'

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: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
39 changes: 39 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
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:
- '^doc'
- '^test'
- '^Merge'
brews:
- tap:
owner: CamiloGarciaLaRotta
name: homebrew-brews
folder: Formula
homepage: https://github.com/CamiloGarciaLaRotta/gifhub
description: Create GIFs from user's GitHub activity graph
test: |
system "#{bin}/gifhub"

0 comments on commit dc52961

Please sign in to comment.