Skip to content

Release

Release #79

Workflow file for this run

name: Release
on:
# Trigger after CI workflow completes successfully on tag pushes
workflow_run:
workflows: ["CI"]
types:
- completed
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
# Only run if CI succeeded and it was triggered by a tag
if: |
github.event.workflow_run.conclusion == 'success' &&
startsWith(github.event.workflow_run.head_branch, 'v')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Checkout the tag that triggered CI
ref: ${{ github.event.workflow_run.head_branch }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}