Skip to content

Update release flow

Update release flow #8

Workflow file for this run

name: Release
on:
push:
tags:
- "v*" # Match all version tags (v1.0.0, v2.0.0-beta.1, etc.)
jobs:
main:
name: Main
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for changelog generation
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.19"
- name: Get dependencies
run: make deps
- name: Build
run: make
- name: Test
run: go test
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
env:
# set github personal access token in order to generate brew formula to external repository
GITHUB_TOKEN: ${{ secrets.GH_PAT }}