Skip to content

Commit

Permalink
BLD: Fix upload PyPI (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
luweizheng authored Oct 6, 2024
1 parent 662d959 commit 1ec2519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,22 @@ jobs:
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v3
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist

# if is xprobe repo, upload to pypi
# if is xorbits repo, upload to pypi
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.repository == 'xorbitsai/xorbits'
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
skip-existing: true

# if is not xprobe repo, upload to test
# if is not xorbits repo, upload to test
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.repository != 'xorbitsai/xorbits'
with:
Expand Down

0 comments on commit 1ec2519

Please sign in to comment.