Skip to content

Commit

Permalink
[Release 0.3.0] Fix PYPI upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ejguan committed Mar 10, 2022
1 parent 38b2ac9 commit fbf097d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/_build_test_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ jobs:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
pip3 install twine
python -m twine upload
python -m twine upload \
--username __token__ \
--password "$PYPI_TOKEN" \
dist/torchdata*.whl
Expand Down Expand Up @@ -266,12 +266,15 @@ jobs:
else
PYTORCH_VERSION=torch
fi
# Use test channel for official release
PIP_CHANNEL=${{ needs.get_release_type.outputs.type }}
if [[ $PIP_CHANNEL == 'official' ]]; then
PIP_CHANNEL='test'
pip3 install "$PYTORCH_VERSION"
else
pip3 install --pre "$PYTORCH_VERSION" -f "https://download.pytorch.org/whl/$PIP_CHANNEL/cpu/torch_$PIP_CHANNEL.html"
fi
pip3 install --pre "$PYTORCH_VERSION" -f "https://download.pytorch.org/whl/$PIP_CHANNEL/cpu/torch_$PIP_CHANNEL.html"
if [[ ${{ needs.get_release_type.outputs.type }} == 'nightly' ]]; then
python setup.py install --nightly
else
Expand Down

0 comments on commit fbf097d

Please sign in to comment.