-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.04 KB
/
release.yml
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
name: Release CLI to the GitHub Release
on:
workflow_dispatch:
inputs:
method:
description: |
Which number to increment in the semantic versioning.
Set 'major', 'minor' or 'patch'.
required: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@master
- name: Bump-up Semantic Version
uses: kyoh86/[email protected]
with:
# method: "major", "minor" or "patch" to update tag with semver
method: "${{ github.event.inputs.method }}"
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
with:
distribution: goreleaser
version: latest
args: release --clean --config .goreleaser.yml