2021-02-13 16:11:56 +00:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
name: Handle Release
|
|
|
|
jobs:
|
2022-04-13 18:23:13 +00:00
|
|
|
kgctl:
|
2021-02-13 16:11:56 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2022-04-21 19:20:09 +00:00
|
|
|
go-version: 1.18
|
2022-04-13 18:23:13 +00:00
|
|
|
- name: Build kgctl Binaries to Be Released
|
2021-02-13 16:11:56 +00:00
|
|
|
run: make release
|
|
|
|
- name: Publish Release
|
|
|
|
uses: skx/github-action-publish-binaries@master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
args: 'bin/release/kgctl-*'
|