Skip to content

Commit c0a35bb

Browse files
authored
Merge pull request #2 from FanZhang526/main
Update workflows
2 parents 96b7e78 + 26a2b91 commit c0a35bb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)