mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 18:03:02 +00:00
31 lines
630 B
YAML
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/*
|