.github/workflows/ci.yml: publish binaries

All kgctl will be published on each new release.
The naming convention is kgctl-<os name>-<architecure>
This commit is contained in:
leonnicolas
2021-02-13 17:11:56 +01:00
parent 7ea8c1bc64
commit 2164e7003f
2 changed files with 30 additions and 1 deletions

21
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
on:
release:
types: [created]
name: Handle Release
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.7
- name: Make Directory with kgctl Binaries to Be Released
run: make release
- name: Publish Release
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'bin/release/kgctl-*'