Skip to content

Merge pull request #5 from roman-kiselenko/docker #8

Merge pull request #5 from roman-kiselenko/docker

Merge pull request #5 from roman-kiselenko/docker #8

Workflow file for this run

name: Release Go project
on:
push:
tags:
- "*" # triggers only if push new tag version, like `0.8.4` or else
jobs:
build:
name: GoReleaser build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
- name: Set up Go 1.22.4
uses: actions/setup-go@v2
with:
go-version: 1.22
id: go
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
if: startsWith(github.ref, 'refs/tags/')
with:
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}