Skip to content

Fix goreleaser-action (#265) #187

Fix goreleaser-action (#265)

Fix goreleaser-action (#265) #187

Workflow file for this run

name: Build
on:
push:
branches:
- master
tags:
- "*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: make test-all
- name: Run GoReleaser
if: github.ref != 'refs/heads/master'
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}