| 1 |
on: |
| 2 |
workflow_call: |
| 3 |
inputs: |
| 4 |
cli-name: |
| 5 |
required: true |
| 6 |
type: string |
| 7 |
name: Release |
| 8 |
jobs: |
| 9 |
release: |
| 10 |
permissions: |
| 11 |
contents: write |
| 12 |
runs-on: ubuntu-latest |
| 13 |
steps: |
| 14 |
- name: Checkout |
| 15 |
uses: actions/checkout@v4 |
| 16 |
with: |
| 17 |
fetch-depth: 0 |
| 18 |
- name: Get Go version |
| 19 |
uses: arnested/go-version-action@f3c61952b5f4cc7c74fb216df044634f6a59770f |
| 20 |
id: go-version |
| 21 |
- name: Set up Go |
| 22 |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe |
| 23 |
with: |
| 24 |
go-version: ${{ steps.go-version.outputs.minimal }} |
| 25 |
- name: Run GoReleaser |
| 26 |
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 |
| 27 |
with: |
| 28 |
distribution: goreleaser |
| 29 |
version: "v1.7.0" |
| 30 |
args: release --config ./.goreleaser/${{ inputs.cli-name }}.yml --rm-dist |
| 31 |
env: |
| 32 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |