Skip to content

Commit

Permalink
Add workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
cabbetlong committed Oct 9, 2024
1 parent 7fa30df commit ebe5da7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit ebe5da7

Please sign in to comment.