Skip to content

Commit

Permalink
[MNN:CI] mnn release support dev test.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Nov 14, 2024
1 parent deb7925 commit 0222000
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 0222000

Please sign in to comment.