Skip to content

Commit

Permalink
fix publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
neka-nat committed Dec 9, 2023
1 parent 56029f7 commit ca7c29b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ jobs:
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
env:
PYPI_USERNAME: ${{ secrets.pypi_username }}
PYPI_PASSWORD: ${{ secrets.pypi_password }}
PYPI_API_TOKEN: ${{ secrets.pypi_api_token }}
run: |
python -m pip install twine
cd build/lib/python_package
python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} pip_package/*
python -m twine upload -u "__token__" -p ${PYPI_API_TOKEN} pip_package/*
5 changes: 2 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.cuda == '11.2.0'
working-directory: ${{ env.build_dir }}/lib/python_package
env:
PYPI_USERNAME: ${{ secrets.pypi_username }}
PYPI_PASSWORD: ${{ secrets.pypi_password }}
PYPI_API_TOKEN: ${{ secrets.pypi_api_token }}
run: |
python -m pip install twine
python -m twine upload -u $env:PYPI_USERNAME -p $env:PYPI_PASSWORD pip_package/*
python -m twine upload -u "__token__" -p $env:PYPI_API_TOKEN pip_package/*

0 comments on commit ca7c29b

Please sign in to comment.