Skip to content

Commit

Permalink
Merge pull request #94 from kanmu/update_goreleaser
Browse files Browse the repository at this point in the history
Update .goreleaser.yml
  • Loading branch information
winebarrel authored Nov 14, 2024
2 parents 74091dc + 5e018cd commit f6ec08d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ">=1.20.5"
- id: gh-app-auth
uses: summerwind/gh-app-auth@main
go-version-file: go.mod
- id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: 244816
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
account: kanmu
owner: kanmu
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ steps.gh-app-auth.outputs.token }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- go mod tidy
Expand All @@ -10,7 +11,7 @@ builds:
checksum:
name_template: "checksums.txt"
brews:
- tap:
- repository:
owner: kanmu
name: homebrew-tools
homepage: https://github.com/kanmu/jhol
Expand Down

0 comments on commit f6ec08d

Please sign in to comment.