Skip to content

Commit 0f4efe3

Browse files
committed
fix: goreleaser v2 compat, trigger release-binaries with workflow_run
Ref: #536
1 parent ed334d8 commit 0f4efe3

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/release-binaries.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: GoReleaser
22
on:
33
release:
44
types: [ published ]
5-
5+
workflow_dispatch:
6+
workflow_run:
7+
workflows: [Releaser]
8+
types: [completed]
69
jobs:
710
bin-releaser:
811
name: Release Binaries
@@ -15,12 +18,12 @@ jobs:
1518
- name: Set up Go
1619
uses: actions/setup-go@v5
1720
with:
18-
go-version: "1.19.x"
21+
go-version: "1.22.x"
1922
- name: Release Binaries
2023
uses: goreleaser/goreleaser-action@v6
2124
with:
2225
distribution: goreleaser
2326
version: latest
24-
args: release --rm-dist
27+
args: release --clean
2528
env:
2629
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
2+
3+
version: 2
14
builds:
25
- main: ./car
36
dir: cmd
@@ -20,5 +23,4 @@ archives:
2023
release:
2124
mode: keep-existing
2225
changelog:
23-
skip: true
24-
26+
disable: true

0 commit comments

Comments
 (0)