Skip to content

Commit

Permalink
ci: fix build binary (#20)
Browse files Browse the repository at this point in the history
* ci: fix build binary

* ci: fix correct file
  • Loading branch information
Tchoupinax authored Aug 12, 2024
1 parent f7c86e6 commit ea1db3f
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 }}

0 comments on commit ea1db3f

Please sign in to comment.