Skip to content

build: release v1.3.0 #7

build: release v1.3.0

build: release v1.3.0 #7

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Vet
run: go vet ./...
- name: Test
run: go test ./... -race -cover
release:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
with:
# Full history and tags are required for the changelog.
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
# GoReleaser builds the binaries, generates the changelog, and creates the
# GitHub release (via the API, using GITHUB_TOKEN) with the artefacts
# attached. Installed via its run script — no third-party actions.
- name: Run GoReleaser
run: curl -sfL https://goreleaser.com/static/run | bash -s -- release --clean
env:
# Creates the release in this repo.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Pushes the Homebrew formula to lucinate-ai/homebrew-tap.
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}