mirror of
https://github.com/truecharts/charts.git
synced 2026-07-07 11:01:21 -03:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # 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@9c156ee8a17a598857849441385a2041ef570552 # v6
|
|
with:
|
|
args: release --clean
|
|
distribution: goreleaser # or 'goreleaser-pro'
|
|
version: "~> v2" # or 'latest', 'nightly', semver
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}"
|