diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 293aecc646..7848697a7d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,15 +24,11 @@ jobs: run: | ls ${{ github.workspace }}/linux-wheels - name: Publish to PyPI - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - #password: ${{ secrets.PYPI_TEST_API_TOKEN }} - #repository_url: https://test.pypi.org/legacy/ - password: ${{ secrets.PYPI_API_TOKEN }} - packages-dir: ${{ github.workspace }}/linux-wheels - verbose: true + run: | + pip3 install twine + export TWINE_USERNAME=__token__ + export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}" + twine upload --verbose linux-wheels/* release-pypi-aarch64: runs-on: ubuntu-latest @@ -67,15 +63,11 @@ jobs: run: | ls ${{ github.workspace }}/linux-wheels - name: Publish to PyPI - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - #password: ${{ secrets.PYPI_TEST_API_TOKEN }} - #repository_url: https://test.pypi.org/legacy/ - password: ${{ secrets.PYPI_API_TOKEN }} - packages-dir: ${{ github.workspace }}/linux-wheels - verbose: true + run: | + pip3 install twine + export TWINE_USERNAME=__token__ + export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}" + twine upload --verbose linux-wheels/* release-pypi-macos-x86: name: Build wheels for macos @@ -148,15 +140,11 @@ jobs: run: | ls ${{ github.workspace }}/dist - name: Publish to PyPI - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - #password: ${{ secrets.PYPI_TEST_API_TOKEN }} - #repository_url: https://test.pypi.org/legacy/ - password: ${{ secrets.PYPI_API_TOKEN }} - packages-dir: ${{ github.workspace }}/dist - verbose: true + run: | + pip3 install twine + export TWINE_USERNAME=__token__ + export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}" + twine upload --verbose linux-wheels/* release-conda-linux: runs-on: ubuntu-latest