Skip to content

Commit fc799db

Browse files
authored
Adjust the goreleaser config (#127)
* feat: Update the Goreleaser config * feat: Add validation layer
1 parent 816a973 commit fc799db

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@ jobs:
1919
- name: Build
2020
run: |
2121
./scripts/build
22+
23+
- name: Validate the Goreleaser config
24+
uses: goreleaser/goreleaser-action@v6
25+
with:
26+
distribution: goreleaser
27+
version: latest
28+
args: check

.goreleaser.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
before:
24
hooks:
35
# You may remove this if you don't use go modules.
@@ -11,12 +13,12 @@ builds:
1113
- darwin_arm64
1214
main: main.go
1315
binary: sshtunnel
14-
ldflags:
15-
- -X github.com/dueckminor/go-sshtunnel/commands.version={{.Version}}
16+
ldflags:
17+
- -X github.com/dueckminor/go-sshtunnel/commands.version={{.Version}}
1618

1719
archives:
1820
- id: binary
19-
format: tar.gz
21+
formats: ["tar.gz"]
2022
name_template: >-
2123
{{- if eq .ProjectName "go-sshtunnel" }}sshtunnel-
2224
{{- else }}{{ .ProjectName }}-{{ end }}
@@ -44,7 +46,7 @@ release:
4446

4547
brews:
4648
-
47-
folder: Formula
49+
directory: Formula
4850
homepage: "https://github.com/dueckminor/go-sshtunnel/"
4951
description: "A tiny ssh tunnel implemented in GO. It's main purpose is to establish an SSH connection from a Docker container to a jumpbox and redirect all outgoing TCP traffic over this connection."
5052
test: |

0 commit comments

Comments
 (0)