-
Notifications
You must be signed in to change notification settings - Fork 47
36 lines (34 loc) · 1.06 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI Create Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.1'
- name: Get Version
id: branch-names
uses: tj-actions/branch-names@v8
with:
strip_tag_prefix: v
- name: Build
run: |
chmod +x ./build.sh
./build.sh ${{ steps.branch-names.outputs.tag }} X86
./build.sh ${{ steps.branch-names.outputs.tag }} ARM
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: TODO New Release.
draft: true
files: |
eSDK_Huawei_Storage_Kubernetes_CSI_Plugin_V${{ steps.branch-names.outputs.tag }}_X86_64.zip
eSDK_Huawei_Storage_Kubernetes_CSI_Plugin_V${{ steps.branch-names.outputs.tag }}_ARM_64.zip