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