-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.06 KB
/
cli-release.yaml
File metadata and controls
41 lines (41 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CLI Release
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref_name }}
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name for the release'
required: true
type: string
release:
description: "Whether to create a GitHub Release"
required: false
default: true
type: boolean
permissions:
contents: write
jobs:
build-cli:
name: "Build CLI"
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.1
- name: Run GoReleaser
if: inputs.release
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release -f .goreleaser/cli.yaml --clean
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }}