Skip to content

fix: Update Go version to '1.23'. #5

fix: Update Go version to '1.23'.

fix: Update Go version to '1.23'. #5

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- master
- develop
tags:
- 'v*'
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean ${{ github.ref_type == 'tag' && '' || '--snapshot' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}