Skip to content

Commit

Permalink
ci: πŸ‘· pypi username - password swap with token
Browse files Browse the repository at this point in the history
Signed-off-by: Onuralp SEZER <[email protected]>
  • Loading branch information
onuralpszr committed Sep 24, 2024
1 parent 65f606e commit 787bbda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ jobs:
python -m pip install --upgrade build twine
python -m build
twine check --strict dist/*
- name: πŸš€ Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: πŸš€ Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1.10
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
password: ${{ secrets.PYPI_API_TOKEN }}
- name: πŸš€ Publish to Test-PyPi
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1.10
with:
repository-url: https://test.pypi.org/legacy/
user: ${{ secrets.PYPI_TEST_USERNAME }}
password: ${{ secrets.PYPI_TEST_PASSWORD }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ jobs:
python -m build
twine check --strict dist/*
- name: πŸš€ Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1.10
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
password: ${{ secrets.PYPI_API_TOKEN }}
- name: πŸš€ Publish to Test-PyPi
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1.10
with:
repository-url: https://test.pypi.org/legacy/
user: ${{ secrets.PYPI_TEST_USERNAME }}
password: ${{ secrets.PYPI_TEST_PASSWORD }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 comments on commit 787bbda

Please sign in to comment.