kubekey/.github/workflows/release.yaml
24sama 6b5a0c6e52 feat: add k3s control-plane provider and bootstrap provider
Signed-off-by: 24sama <jacksama@foxmail.com>
2022-10-21 16:28:59 +08:00

31 lines
630 B
YAML

name: Release
on:
push:
tags:
- '*'
jobs:
build:
name: create draft release
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install go
uses: actions/setup-go@v3
with:
go-version: '^1.19'
- name: generate release artifacts
run: |
make release
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: out/*