forked from truecharts/public
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1 KB
/
clustertool.release.yaml
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
name: clustertool-go-release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
tags:
- "*"
paths:
- 'clustertool/**'
jobs:
goreleaser:
runs-on: actions-runners
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
fetch-depth: 0
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
go-version: stable
cache: true
cache-dependency-path: |
**/go.mod
**/go.sum
# - name: Install Syft
# run: sudo curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6
with:
args: release --clean
distribution: goreleaser # or 'goreleaser-pro'
version: "~> v2" # or 'latest', 'nightly', semver
env:
GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}"