From ca7c29b8fde20ceba3b4eaa5e0affb4bdbf66935 Mon Sep 17 00:00:00 2001 From: neka-nat Date: Sat, 9 Dec 2023 13:33:20 +0900 Subject: [PATCH] fix publish package --- .github/workflows/ubuntu.yml | 5 ++--- .github/workflows/windows.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index b6cbeedb..9522c4ed 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -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/* \ No newline at end of file + python -m twine upload -u "__token__" -p ${PYPI_API_TOKEN} pip_package/* \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6afe6ad0..6ddd6da4 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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/* \ No newline at end of file + python -m twine upload -u "__token__" -p $env:PYPI_API_TOKEN pip_package/* \ No newline at end of file