Skip to content

update and fix release script (#179) #42

update and fix release script (#179)

update and fix release script (#179) #42

Workflow file for this run

name: Build release binaries for tag
on:
push:
tags:
- 'v*'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ^1.22
- name: Install govvv
run: |
go install github.com/ahmetb/govvv@latest
- uses: actions/checkout@v4
- name: Make release
run: |
make release
- name: Release
uses: softprops/action-gh-release@v2
with:
files: 'cmd/kubectl-cost/kubectl-cost-*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update version in Krew index
uses: rajatjindal/[email protected]
# see https://github.com/rajatjindal/krew-release-bot
# and /.krew.yaml