Skip to content

Commit

Permalink
Develop (#644)
Browse files Browse the repository at this point in the history
* Update deploy.yml

* Update deploy.yml (#643)

* Update deploy.yml

Upgrade actions/checkout@v2 -> actions/checkout@v4.

* Update deploy.yml

According to docs username must be __token__ when using API token: https://pypi.org/help/#invalid-auth

* Update deploy.yml

We need to generate PYP_API_TOKEN once we have access. 
__token__ is required, since we do authenticate with an API token and not username password combination.

---------

Co-authored-by: Jonas Arruda <[email protected]>
  • Loading branch information
stephanmg and arrjon authored Oct 30, 2024
1 parent 077c8e8 commit 6ee268f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Prepare python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -29,8 +29,8 @@ jobs:
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 6ee268f

Please sign in to comment.