Skip to content

Update GitHub Action to use Go 1.22 #2

Update GitHub Action to use Go 1.22

Update GitHub Action to use Go 1.22 #2

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 # Use the latest version of the setup-go action
with:
go-version: '1.22' # Set the Go version to 1.22
- name: Install dependencies
run: go mod tidy
- name: Install GoReleaser
run: |
curl -sSL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
- name: Run GoReleaser
run: goreleaser release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the automatically provided GitHub token