Skip to content

Commit

Permalink
Merge pull request #17 from yuchen0cc/main
Browse files Browse the repository at this point in the history
revise release tag and fix for upload/download artifact v4
  • Loading branch information
liulanzheng authored Dec 12, 2024
2 parents 64338bc + 0eda157 commit b5c3458
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 b5c3458

Please sign in to comment.