Skip to content

Commit

Permalink
Merge pull request #3083 from wangzhaode/feature/using_upload-artifactv4
Browse files Browse the repository at this point in the history
[MNN:CI] bugfix of ci wheel name.
  • Loading branch information
wangzhaode authored Nov 14, 2024
2 parents 0560e02 + 0222000 commit bacbd63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/mnn_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ jobs:
steps:
- name: get-version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
run: |
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
# 提取标签版本号
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
else
# 如果不是标签,则设置版本为 'dev'
echo "VERSION=dev" >> $GITHUB_OUTPUT
fi
linux-release:
needs: [setup]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pymnn_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.arch }}-${{ matrix.arch }}
name: artifact-${{ matrix.os }}-${{ matrix.arch }}
path: wheelhouse/*.whl

publish_wheels:
Expand Down

0 comments on commit bacbd63

Please sign in to comment.