Skip to content

Commit

Permalink
Create .goreleaser.yml (#57)
Browse files Browse the repository at this point in the history
* Create .goreleaser.yml

This is a sample file to start with goreleaser

* Add goos, goarch, ldflags

Add sample options for goos, goarch and ldflags

* Minor fixes and adding missing workflow file (#61)

* Cerebrux/issue16 (#62)

* Minor fixes and adding missing workflow file

* Parse from formatter - adding suggestions

* rm main

Co-authored-by: Salih Emin
  • Loading branch information
GrSoul committed Oct 8, 2020
1 parent 2dd2b52 commit f4da8a4
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: goreleaser
on:
push:
tags:
- "*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2.1.3
with:
go-version: 1.15.2

- name: Cache Go modules
uses: actions/cache@v2.1.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.2.1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# .goreleaser.yml proposed options for Romie
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- freebsd
- openbsd
goarch:
- 386
- amd64
- arm
- arm64
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser

0 comments on commit f4da8a4

Please sign in to comment.