Skip to content

Release Go project

Release Go project #5

Workflow file for this run

name: Release Go project
on:
push:
tags:
- "*" # triggers only if push new tag version
env:
GO_VER: "1.20"
jobs:
build:
name: GoReleaser
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VER }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}