Skip to content

Update GitHub Action to use GoReleaser Action #3

Update GitHub Action to use GoReleaser Action

Update GitHub Action to use GoReleaser Action #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*' # Trigger the workflow on version tags
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22' # Set the Go version to 1.22
- name: Install dependencies
run: go mod tidy
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the automatically provided GitHub token