From 30485c9fc775108a151ccf628a9880147153e5e0 Mon Sep 17 00:00:00 2001 From: KEINOS Date: Sun, 16 Jun 2024 10:53:49 +0900 Subject: [PATCH] fix: goreleaser conf v0 to v2 - Ref: https://goreleaser.com/blog/goreleaser-v2/ --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 754755b..ab6cc5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: v2 + version: "~> v2" args: release --config .goreleaser.yml --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 31c6c68..be5c1a9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,5 @@ # ============================================================================= -# GoReleaser configuration file for Kagome +# GoReleaser v2 configuration file for Kagome # ============================================================================= # For local testing run: # goreleaser --skip-publish --clean --snapshot @@ -7,6 +7,7 @@ # Note: # To build multiarch Docker image, you may be required to install Docker buildx # plugin and QEMU. +version: 2 env: - GO111MODULE=on @@ -60,7 +61,7 @@ brews: email: goreleaser@carlosbecker.com description: "Self-contained Japanese Morphological Analyzer written in pure Go." homepage: "https://github.com/ikawaha/kagome" - folder: Formula + directory: Formula install: | bin.install "kagome" test: |