Skip to content

Commit

Permalink
👷 Setup GoReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld committed Sep 2, 2020
1 parent be5bba4 commit d0eb382
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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.15
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: 0.x
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Binaries
build
dist
gemget
gemget-*

Expand Down
62 changes: 62 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Copied from Amfora's .goreleaser.yml
# https://github.com/makeworld-the-better-one/amfora/blob/master/.goreleaser.yml

project_name: gemget

env:
- GO111MODULE=on

before:
hooks:
- go mod download
- go generate ./...

builds:
- env:
- CGO_ENABLED=0

goos:
- linux
- windows
- darwin
- freebsd
- netbsd
- openbsd
goarch:
- 386
- amd64
- arm64
- arm
goarm:
- 6
- 7

ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: netbsd
goarch: arm
- goos: netbsd
goarch: arm64
- goos: openbsd
goarch: arm
- goos: openbsd
goarch: arm64

archives:
- format: binary

replacements:
darwin: macOS
386: 32-bit
amd64: 64-bit

milestones:
- close: true

changelog:
skip: true

0 comments on commit d0eb382

Please sign in to comment.