Skip to content

Fixing build to build binary (#36) #36

Fixing build to build binary (#36)

Fixing build to build binary (#36) #36

name: build-release
on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Repo checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: bump
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: main
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.24.x
- name: Run GoReleaser
if: steps.bump.outputs.new_tag != ''
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ steps.bump.outputs.new_tag }}