Skip to content

Commit b6ffd34

Browse files
feat: update goreleaser
1 parent 0b0a279 commit b6ffd34

File tree

474 files changed

+24110
-14449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

474 files changed

+24110
-14449
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-go@v3
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v4
1515
with:
16-
go-version: '1.20'
16+
go-version: '1.21'
1717
- uses: golangci/golangci-lint-action@v3
1818
with:
1919
args: --timeout=5m
2020
build:
2121
runs-on: ubuntu-latest
2222
needs: lint
2323
steps:
24-
- uses: actions/checkout@v3
25-
- uses: actions/setup-go@v3
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-go@v4
2626
with:
27-
go-version: '1.20'
27+
go-version: '1.21'
2828
- run: go build ./cmd/hooks-goreleaser/
2929
release:
3030
runs-on: ubuntu-latest
3131
needs: build
3232
steps:
33-
- uses: actions/checkout@v3
34-
- uses: actions/setup-go@v3
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-go@v4
3535
with:
36-
go-version: '1.20'
36+
go-version: '1.21'
3737
- run: ./scripts/build-local.sh
3838
- uses: go-semantic-release/action@v1
3939
with:

go.mod

Lines changed: 145 additions & 134 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 366 additions & 3306 deletions
Large diffs are not rendered by default.

goreleaser/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ www/docs/static/schema.json linguist-generated=true
99
www/docs/static/schema-pro.json linguist-generated=true
1010
www/docs/static/releases.json linguist-generated=true
1111
www/docs/static/releases-pro.json linguist-generated=true
12+
*.nix.golden linguist-language=Nix
13+
*.rb.golden linguist-language=Ruby
14+
*.json.golden linguist-language=JSON
15+
*.yaml.golden linguist-language=YAML

goreleaser/.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ body:
2626
id: goreleaser-version
2727
attributes:
2828
label: goreleaser version
29-
description: '`goreleaser --version` output'
29+
description: "`goreleaser --version` output"
3030
render: bash
3131
validations:
3232
required: true
3333
- type: checkboxes
3434
id: goreleaser-check
3535
attributes:
3636
label: GoReleaser Check
37-
description: 'If I run `goreleaser check` it shows no errors'
37+
description: "If I run `goreleaser check` it shows no errors"
3838
options:
3939
- label: goreleaser check shows no errors
4040
required: true
@@ -43,8 +43,14 @@ body:
4343
attributes:
4444
label: Search
4545
options:
46-
- label: I did search for other open and closed issues before opening this.
46+
- label: I did search for other open and closed issues before opening this
4747
required: true
48+
- type: checkboxes
49+
id: supporter
50+
attributes:
51+
label: Supporter
52+
options:
53+
- label: I am a [sponsor](https://github.com/sponsors/caarlos0/) or a [Pro](https://goreleaser.com/pro) customer
4854
- type: checkboxes
4955
id: terms
5056
attributes:

goreleaser/.github/ISSUE_TEMPLATE/feature.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ body:
3434
attributes:
3535
label: Search
3636
options:
37-
- label: I did search for other open and closed issues before opening this.
37+
- label: I did search for other open and closed issues before opening this
3838
required: true
39+
- type: checkboxes
40+
id: supporter
41+
attributes:
42+
label: Supporter
43+
options:
44+
- label: I am a [sponsor](https://github.com/sponsors/caarlos0/) or a [Pro](https://goreleaser.com/pro) customer
3945
- type: checkboxes
4046
id: terms
4147
attributes:

goreleaser/.github/workflows/build.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,59 +3,59 @@ name: build
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- "main"
77
pull_request:
88
paths:
9-
- 'go.*'
10-
- '**/*.go'
11-
- 'Taskfile.yml'
12-
- 'Dockerfile'
13-
- '.github/workflows/*.yml'
9+
- "go.*"
10+
- "**/*.go"
11+
- "Taskfile.yml"
12+
- "Dockerfile"
13+
- ".github/workflows/*.yml"
1414

1515
permissions:
1616
contents: read
1717

1818
jobs:
1919
govulncheck:
2020
uses: caarlos0/meta/.github/workflows/govulncheck.yml@main
21-
with:
22-
cache: true
23-
go-version: '>=1.20.0'
2421
semgrep:
2522
uses: caarlos0/meta/.github/workflows/semgrep.yml@main
2623
ruleguard:
2724
uses: caarlos0/meta/.github/workflows/ruleguard.yml@main
2825
with:
29-
cache: true
30-
go-version: '>=1.20.0'
31-
args: '-disable largeloopcopy'
26+
args: "-disable largeloopcopy"
3227
test:
3328
runs-on: ubuntu-latest
3429
env:
3530
DOCKER_CLI_EXPERIMENTAL: "enabled"
3631
steps:
37-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
32+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3
3833
with:
3934
fetch-depth: 0
4035
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
4136
with:
4237
version: 3.x
4338
repo-token: ${{ secrets.GITHUB_TOKEN }}
44-
- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2
45-
- uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # v2
39+
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
40+
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v2
4641
- name: setup-snapcraft
4742
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
4843
run: |
4944
sudo apt-get update
5045
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
5146
mkdir -p $HOME/.cache/snapcraft/download
5247
mkdir -p $HOME/.cache/snapcraft/stage-packages
53-
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
48+
- uses: crazy-max/ghaction-upx@v3
49+
with:
50+
install-only: true
51+
- uses: cachix/install-nix-action@v23
52+
with:
53+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
54+
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
5455
with:
55-
go-version: '>=1.20.0'
56-
cache: true
57-
- uses: sigstore/[email protected]
58-
- uses: anchore/sbom-action/[email protected]
56+
go-version: stable
57+
- uses: sigstore/[email protected]
58+
- uses: anchore/sbom-action/[email protected]
5959
- name: setup-validate-krew-manifest
6060
run: go install sigs.k8s.io/krew/cmd/validate-krew-manifest@latest
6161
- name: setup-tparse
@@ -66,7 +66,7 @@ jobs:
6666
task build
6767
- name: test
6868
run: ./scripts/test.sh
69-
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3
69+
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
7070
with:
7171
file: ./coverage.txt
7272
- run: ./goreleaser check

goreleaser/.github/workflows/codeql.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
contents: read
1616

1717
steps:
18-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
19-
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
18+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3
19+
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
2020
with:
21-
go-version: '>=1.20.0'
22-
cache: true
23-
- uses: github/codeql-action/init@39d8d7e78f59cf6b40ac3b9fbebef0c753d7c9e5 # v2
24-
- uses: github/codeql-action/autobuild@39d8d7e78f59cf6b40ac3b9fbebef0c753d7c9e5 # v2
25-
- uses: github/codeql-action/analyze@39d8d7e78f59cf6b40ac3b9fbebef0c753d7c9e5 # v2
21+
go-version: stable
22+
- uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2
23+
- uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2
24+
- uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2

goreleaser/.github/workflows/depsreview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
dependency-review:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
11+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3
1212
- uses: actions/dependency-review-action@v3
1313
with:
1414
allow-licenses: BSD-2-Clause, BSD-3-Clause, MIT, Apache-2.0, MPL-2.0

goreleaser/.github/workflows/docs.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ name: docs
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- "main"
77
paths:
8-
- 'www/*'
8+
- "www/**/*"
9+
- ".github/workflows/docs.yml"
910
pull_request:
1011
paths:
11-
- 'www/*'
12+
- "www/**/*"
13+
- ".github/workflows/docs.yml"
1214

1315
permissions:
1416
contents: read
@@ -17,13 +19,13 @@ jobs:
1719
htmltest:
1820
runs-on: ubuntu-latest
1921
steps:
20-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
22+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3
2123
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
2224
with:
2325
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
26+
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
2527
with:
26-
go-version: '>=1.20.0'
28+
go-version: stable
2729
- run: task docs:build
2830
- uses: wjdp/htmltest-action@09118714cd26bef56bd3d0819e4f9b1dce6f60a9 # master
2931
with:

0 commit comments

Comments
 (0)