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@v4 with: fetch-depth: 0 - name: Get Go version uses: arnested/go-version-action@f3c61952b5f4cc7c74fb216df044634f6a59770f id: go-version - name: Set up Go uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe with: go-version: ${{ steps.go-version.outputs.minimal }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 with: distribution: goreleaser version: "v1.7.0" args: release --config ./.goreleaser/${{ inputs.cli-name }}.yml --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}