Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLD: Fix upload PyPI #820

Merged
merged 4 commits into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading