Skip to content

Commit 32a2477

Browse files
committed
fix: correct goReleaser
1 parent c342669 commit 32a2477

3 files changed

Lines changed: 25 additions & 30 deletions

File tree

.github/workflows/goreleaser.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Please
1+
name: Release
22

33
on:
44
push:
@@ -20,3 +20,26 @@ jobs:
2020
id: release
2121
with:
2222
release-type: go
23+
24+
goreleaser:
25+
needs: release-please
26+
if: ${{ needs.release-please.outputs.release_created }}
27+
runs-on: ubuntu-latest
28+
permissions:
29+
contents: write
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
35+
- uses: actions/setup-go@v5
36+
with:
37+
go-version-file: go.mod
38+
39+
- uses: goreleaser/goreleaser-action@v6
40+
with:
41+
version: '~> v2'
42+
args: release --clean
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ brews:
2727
owner: sushidev-team
2828
name: homebrew-tap
2929
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
30+
directory: Formula
3031
name: wt
3132
homepage: "https://github.com/sushidev-team/worktree-manager"
3233
description: "A convenient CLI for managing git worktrees"

0 commit comments

Comments
 (0)