Browse Source

Experimenting with goreleaser

Piotr Czajkowski 2 years ago
parent
commit
cf9d8416eb
3 changed files with 36 additions and 0 deletions
  1. 2 0
      .gitignore
  2. 30 0
      .goreleaser.yml
  3. 4 0
      makefile

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+
+dist/

+ 30 - 0
.goreleaser.yml

@@ -0,0 +1,30 @@
+# This is an example .goreleaser.yml file with some sensible defaults.
+# Make sure to check the documentation at https://goreleaser.com
+before:
+  hooks:
+    # You may remove this if you don't use go modules.
+    - go mod tidy
+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: "{{ incpatch .Version }}-next"
+changelog:
+  sort: asc
+  filters:
+    exclude:
+      - '^docs:'
+      - '^test:'

+ 4 - 0
makefile

@@ -0,0 +1,4 @@
+tmsearch:
+	@goreleaser release --snapshot --rm-dist
+
+default: tmsearch