Skip to content

Commit 9975bf0

Browse files
Simon Prochazkafallion
authored andcommitted
chore(ci): update goreleaser config and add action to check config
1 parent ea08267 commit 9975bf0

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: GoReleaser Check
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".goreleaser.yml"
7+
- ".github/workflows/goreleaser-check.yml"
8+
push:
9+
branches:
10+
- master
11+
paths:
12+
- ".goreleaser.yml"
13+
- ".github/workflows/goreleaser-check.yml"
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out code
20+
uses: actions/checkout@v6
21+
22+
- name: Check GoReleaser config
23+
uses: goreleaser/goreleaser-action@v6
24+
with:
25+
version: latest
26+
args: check

.goreleaser.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+
# Make sure to check the documentation at https://goreleaser.com
3+
version: 2
4+
35
before:
46
hooks:
5-
# you may remove this if you don't use vgo
67
- go mod download
8+
79
builds:
810
- env:
911
- CGO_ENABLED=0
@@ -12,9 +14,12 @@ builds:
1214
- windows
1315
- linux
1416
- darwin
17+
1518
checksum:
1619
name_template: "checksums.txt"
20+
1721
snapshot:
18-
name_template: "{{ .Tag }}-next"
22+
version_template: "{{ .Tag }}-next"
23+
1924
changelog:
20-
skip: true
25+
disable: true

0 commit comments

Comments
 (0)