Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
YufJi committed Dec 28, 2023
1 parent c48773a commit 463c279
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
run: echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV

- name: Get version from branch name
run: echo "VERSION=$(echo ${{ env.BRANCH_NAME }} | cut -d'/' -f2)" >> $GITHUB_ENV
# 从分支名中获取版本号release/v1.0.0 => 1.0.0
run: echo "VERSION=$(echo $BRANCH_NAME | sed 's/release\/v//g')" >> $GITHUB_ENV

- name: Set node
uses: actions/setup-node@v3
Expand All @@ -40,7 +41,12 @@ jobs:
run: mkdir temp && cp -r ./dist-theme ./temp/dist-theme && cp -r ./assets-package/src ./temp/src && cp -r ./assets-package/src-vusion ./temp/src-vusion

- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'mobile-ui@${{ env.VERSION }}'
path: temp

call-wexler:
needs: build
uses: vusion/wexler/.github/workflows/release-vant.yml@master
secrets: inherit

0 comments on commit 463c279

Please sign in to comment.