Skip to content

Commit

Permalink
add setup for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
wreulicke committed May 19, 2020
1 parent a66caa1 commit 918ebbc
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- "!*"
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- 1.14.3
name: GoReleaser
steps:
- uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Run go mod download
run: go mod download
- name: Run GoReleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: curl -sL https://git.io/goreleaser | bash
30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
builds:
- main: ./cmd/ssos
binary: ssos
goos:
- windows
- darwin
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -s -w
checksum:
name_template: checksums.txt
archives:
- format: binary
snapshot:
name_template: master
changelog:
sort: asc
filters:
exclude:
- "Merge pull request"
- "Merge branch"
release:
github:
owner: wreulicke
name: ssos

0 comments on commit 918ebbc

Please sign in to comment.