Skip to content

Release v0.1.1 - ship plugin files via brew #2

Release v0.1.1 - ship plugin files via brew

Release v0.1.1 - ship plugin files via brew #2

Workflow file for this run

name: release
# Triggered on pushing a vX.Y.Z tag.
#
# Required repository secrets:
# HOMEBREW_TAP_TOKEN - GitHub Personal Access Token with `repo` scope on
# the AndreySvinarenko/homebrew-tap repository
# (GITHUB_TOKEN is provided automatically by GitHub Actions and is enough
# for creating the Release in this repo.)
on:
push:
tags:
- "v*"
permissions:
contents: write # create the GitHub Release in this repo
jobs:
release:
name: goreleaser
runs-on: macos-latest # darwin builds run natively here; could be ubuntu-latest with CGO_ENABLED=0
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0 # goreleaser needs full history for changelog
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
check-latest: true
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}