Skip to content

Commit a03c59d

Browse files
committed
use api token
1 parent 029f04e commit a03c59d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build_release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,14 @@ jobs:
7676
gpg --no-default-keyring --keyring ./sessionring.gpg --pinentry-mode loopback --passphrase ""${{ secrets.PYPI_SIGN_PASSPHRASE }}"" --detach-sign -ao /dev/null dist/*
7777
- name: Twine Check
7878
run: twine check dist/*
79+
- name: Publish to Test PyPi
80+
run: twine upload dist/*
81+
env:
82+
TWINE_USERNAME: __token__
83+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
84+
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
7985
- name: Publish to PyPi
80-
uses: pypa/gh-action-pypi-publish@master
81-
with:
82-
user: ${{ secrets.PYPI_USERNAME }}
83-
password: ${{ secrets.PYPI_PASSWORD }}
84-
repository_url: https://test.pypi.org/legacy/
86+
run: twine upload dist/*
87+
env:
88+
TWINE_USERNAME: __token__
89+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)