Skip to content

action: version output (#28) #6

action: version output (#28)

action: version output (#28) #6

Workflow file for this run

name: Go-Release
on:
push:
tags:
- v*
jobs:
main:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Set GOVERSION env
run: echo "GOVERSION=$(go version | awk '{print $3}')" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: release --config .github/goreleaser.yml