From f8319d3e0d899058e6450ab09106dc91e284ef4d Mon Sep 17 00:00:00 2001
From: mathew
Date: Fri, 17 Jul 2020 14:24:34 -0500
Subject: [PATCH] Try goreleaser
---
.github/workflows/goreleaser.yml | 27 +++++++++++++++++++++++++
.gitignore | 1 +
.goreleaser.yml | 34 ++++++++++++++++++++++++++++++++
.idea/encodings.xml | 4 ++++
4 files changed, 66 insertions(+)
create mode 100644 .github/workflows/goreleaser.yml
create mode 100644 .goreleaser.yml
create mode 100644 .idea/encodings.xml
diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml
new file mode 100644
index 0000000..de051b0
--- /dev/null
+++ b/.github/workflows/goreleaser.yml
@@ -0,0 +1,27 @@
+name: goreleaser
+on:
+ push:
+ tags:
+ - '*'
+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.GITHUB_TOKEN }}
diff --git a/.gitignore b/.gitignore
index b9fb9cf..1943114 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
goup
+dist
diff --git a/.goreleaser.yml b/.goreleaser.yml
new file mode 100644
index 0000000..42edfef
--- /dev/null
+++ b/.goreleaser.yml
@@ -0,0 +1,34 @@
+# This is an example goreleaser.yaml file with some sane defaults.
+# Make sure to check the documentation at http://goreleaser.com
+before:
+ hooks:
+ # You may remove this if you don't use go modules.
+ - go mod download
+ # you may remove this if you don't need go generate
+ # - go generate ./...
+builds:
+- env:
+ - CGO_ENABLED=0
+ goos:
+ - linux
+ - darwin
+ - freebsd
+ goarch:
+ - amd64
+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:
+ - '^docs:'
+ - '^test:'
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..15a15b2
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file