From 7856a25d261b1d89d79713df1f939248228813e8 Mon Sep 17 00:00:00 2001 From: seiya_tagami Date: Sat, 1 Jun 2024 11:19:08 +0900 Subject: [PATCH] chore: fix release flow --- .github/workflows/release.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 458a3ea..857c05d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,8 +1,9 @@ name: goreleaser on: - pull_request: push: + tags: + - "*" permissions: contents: write @@ -18,12 +19,13 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 + with: + go-version-file: go.mod + cache: true - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: - distribution: goreleaser - version: "~> v1" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}