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