From c92b82786775faaa4ef6c6a5811f03bff1d8e188 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Fri, 17 Jan 2025 22:31:48 +0900 Subject: [PATCH] Use `raviqqe/goreleaser-action` (#435) --- .github/workflows/release.yaml | 4 +--- tools/release.sh | 21 --------------------- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100755 tools/release.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 443c2de..553c8ec 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,10 +10,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - run: tools/release.sh + - uses: raviqqe/goreleaser-action@v1 env: - GIT_USER: ${{ secrets.GIT_USER }} - GIT_EMAIL: ${{ secrets.GIT_EMAIL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} docker: needs: release diff --git a/tools/release.sh b/tools/release.sh deleted file mode 100755 index a939a12..0000000 --- a/tools/release.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -set -e - -if [ -z $CI ]; then - exit 1 -fi - -version=v$(go run . --version) - -if git tag -l | grep $version; then - exit -fi - -git config --global user.name "$GIT_USER" -git config --global user.email "$GIT_EMAIL" - -git tag $version -git push --tags - -curl -fsSL https://git.io/goreleaser | bash