blob: 8fc993440d1a8c13f901a29d98bb36b7fc62228e [file] [log] [blame]
on:
workflow_call:
inputs:
cli-name:
required: true
type: string
name: Release
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get Go version
uses: arnested/go-version-action@6d27c5921683f55415260f7a285d330ddb146fa2
id: go-version
- name: Set up Go
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
with:
go-version: ${{ steps.go-version.outputs.minimal }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef
with:
distribution: goreleaser
version: "v1.7.0"
args: release --config ./.goreleaser/${{ inputs.cli-name }}.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}