Skip to content

Commit 797525d

Browse files
authored
Merge pull request #330 from replicatedhq/laverya/pin-goreleaser-v1
fix goreleaser flag and config, run goreleaser check in CI
2 parents 781bfe3 + 9a96172 commit 797525d

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/build-test.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,24 @@ jobs:
7474

7575
- name: Validate Cluster End State
7676
run: ./testing/validate.sh
77+
78+
check-goreleaser:
79+
runs-on: ubuntu-latest
80+
steps:
81+
- name: Checkout
82+
uses: actions/checkout@v5
83+
84+
- name: Unshallow
85+
run: git fetch --prune --unshallow
86+
87+
- uses: actions/setup-go@v5
88+
with:
89+
go-version-file: go.mod
90+
91+
- name: Check GoReleaser
92+
uses: goreleaser/goreleaser-action@v6
93+
with:
94+
version: latest
95+
args: check --config deploy/.goreleaser.yaml
96+
env:
97+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
uses: goreleaser/goreleaser-action@v6
9797
with:
9898
version: latest
99-
args: release --rm-dist --config deploy/.goreleaser.yaml
99+
args: release --clean --config deploy/.goreleaser.yaml
100100
env:
101101
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102102

deploy/.goreleaser.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
project_name: pvmigrate
23
release:
34
github:
@@ -24,12 +25,14 @@ builds:
2425
hooks: { }
2526
archives:
2627
- id: pvmigrate
27-
builds:
28+
ids:
2829
- pvmigrate
29-
format: tar.gz
30+
formats:
31+
- tar.gz
3032
format_overrides:
3133
- goos: windows
32-
format: zip
34+
formats:
35+
- zip
3336
name_template: 'pvmigrate_{{ .Os }}_{{ .Arch }}'
3437
files:
3538
- licence*

0 commit comments

Comments
 (0)