Skip to content

Fix goreleaser intentation #16

Fix goreleaser intentation

Fix goreleaser intentation #16

Workflow file for this run

name: Release
on:
workflow_call:
workflow_dispatch:
push:
tags: 'v*'
jobs:
goreleaser:
name: GoReleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Generate tag name
run: |
# tag > commit
echo "build_version=$(git describe --tags --exact-match 2> /dev/null || git rev-parse --short HEAD)" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: v1.21.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CI_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ env.build_version }}