From 4c4676fc6b865a3dd667044aa35612d1e995a374 Mon Sep 17 00:00:00 2001 From: kaku <1154584512@qq.com> Date: Tue, 14 Mar 2023 23:38:24 +0800 Subject: [PATCH] feat: update goreleaser Signed-off-by: kaku <1154584512@qq.com> --- .github/workflows/release.yml | 12 +++++++----- .goreleaser.yml | 2 ++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cff06f4..3437e78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,12 +8,14 @@ jobs: runs-on: ubuntu-latest environment: release steps: - - name: Checkout - uses: actions/checkout@master - - name: Setup Go - uses: actions/setup-go@v1 + - uses: actions/checkout@v3 with: - go-version: 1.19 + fetch-depth: 0 + - run: git fetch --force --tags + - uses: actions/setup-go@v3 + with: + go-version: '>=1.19' + cache: true - name: GoReleaser uses: goreleaser/goreleaser-action@v4 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index c01bd41..b960088 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -61,5 +61,7 @@ brews: homepage: https://github.com/k-cloud-labs/kluster-capacity license: apache-2.0 description: A simple CLI that support capacity estimation, cluster compression, scheduler simulation, fragmentation analysis and resource overview. + dependencies: + - name: git test: | system "#{bin}/kube-capacity version" \ No newline at end of file