Skip to content

Commit

Permalink
revise release tag
Browse files Browse the repository at this point in the history
Signed-off-by: yuchen.cc <[email protected]>
  • Loading branch information
yuchen0cc committed Dec 12, 2024
1 parent 64338bc commit 0eda157
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{ strategy.job-index }}
path: dist/oss*.whl

release:
Expand All @@ -64,15 +64,17 @@ jobs:
steps:
- name: Download builds and release notes
uses: actions/download-artifact@v4
with:
pattern: dist-*
merge-multiple: true
path: dist
- name: Display downloaded files
shell: bash
run: |
ls -l dist
REFS=${{ github.ref }}
REFS=${REFS#refs/tags/}
PACKAGE_NAME=${REFS%%/*}
RELEASE_VERSION="${REFS#*/v}"
echo "RELEASE_TAG=${PACKAGE_NAME}-${RELEASE_VERSION}" >> $GITHUB_ENV
echo "RELEASE_TAG=${REFS}" >> $GITHUB_ENV
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down

0 comments on commit 0eda157

Please sign in to comment.