From 92cb2413cfa8eaf4883dd37938c0106292a43c73 Mon Sep 17 00:00:00 2001 From: ddddddO Date: Sun, 25 Aug 2024 18:24:14 +0900 Subject: [PATCH] up goreleaser --- .github/workflows/cd.yaml | 6 +++--- .goreleaser.yml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 8037319..0133d85 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -2,7 +2,7 @@ name: cd on: push: tags: - - "v[0-9]+.[0-9]+.[0-9]+" + - "v[0-9]+.[0-9]+.[0-9]+" jobs: goreleaser: runs-on: ubuntu-latest @@ -14,12 +14,12 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: '>=1.22' + go-version: ">=1.22" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN_CALMA }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index f64ba22..6f3b095 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 project_name: calma env: - GO111MODULE=on @@ -42,9 +43,9 @@ brews: owner: ddddddO name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" - folder: Formula - homepage: 'https://github.com/ddddddO/calma' - description: '♻Calendar for Markdown♻ ...only for Japan!🎌' + directory: Formula + homepage: "https://github.com/ddddddO/calma" + description: "♻Calendar for Markdown♻ ...only for Japan!🎌" license: "BSD-2-Clause" scoops: - repository: