Skip to content

Commit

Permalink
fix: goreleaser v2 compat, trigger release-binaries with workflow_run
Browse files Browse the repository at this point in the history
Ref: #536
  • Loading branch information
rvagg committed Sep 25, 2024
1 parent ed334d8 commit 0f4efe3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: GoReleaser
on:
release:
types: [ published ]

workflow_dispatch:
workflow_run:
workflows: [Releaser]
types: [completed]
jobs:
bin-releaser:
name: Release Binaries
Expand All @@ -15,12 +18,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.19.x"
go-version: "1.22.x"
- name: Release Binaries
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json

version: 2
builds:
- main: ./car
dir: cmd
Expand All @@ -20,5 +23,4 @@ archives:
release:
mode: keep-existing
changelog:
skip: true

disable: true

0 comments on commit 0f4efe3

Please sign in to comment.