From ea1db3f4f6affd18de7c29f149676ee0f704cf99 Mon Sep 17 00:00:00 2001 From: Tchoupinax Date: Mon, 12 Aug 2024 20:31:13 +0200 Subject: [PATCH] ci: fix build binary (#20) * ci: fix build binary * ci: fix correct file --- .github/workflows/release-binary.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml index ff1065f..d9221c8 100644 --- a/.github/workflows/release-binary.yml +++ b/.github/workflows/release-binary.yml @@ -1,16 +1,16 @@ -name: Releases publication +name: Releases binary on: push: tags: - - '*' + - "*" jobs: goreleaser: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -20,23 +20,14 @@ jobs: echo "Using Go version ${{ steps.vars.outputs.go_version }}" - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ steps.vars.outputs.go_version }} - name: Compile the source - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: - version: latest - args: build --rm-dist --skip-validate + version: v2.1.0 + args: release env: - GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 - with: - distribution: goreleaser - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}