From 5e018cdf793f8757fa7d2da575d2153b9e73c4d3 Mon Sep 17 00:00:00 2001 From: Genki Sugawara Date: Thu, 14 Nov 2024 14:37:19 +0900 Subject: [PATCH] Update .goreleaser.yml --- .github/workflows/goreleaser.yml | 16 +++++++++------- .goreleaser.yml | 3 ++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 877d714..0bdd0ab 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index c05ca84..b59c27b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod tidy @@ -10,7 +11,7 @@ builds: checksum: name_template: "checksums.txt" brews: - - tap: + - repository: owner: kanmu name: homebrew-tools homepage: https://github.com/kanmu/jhol