Skip to content

Release

Release #8

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*' # Trigger on tags like v1.0.0, v0.1.0-beta
jobs:
goreleaser:
name: Build and Release with GoReleaser
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Fetch all history so GoReleaser can generate a changelog
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22' # From go.mod
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# The version of GoReleaser to use.
version: latest
# The arguments to pass to GoReleaser.
args: release --clean
env:
# The GITHUB_TOKEN is required to create the release.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}