From e25a3e14e9b0e3048d00fcfccf478392e2528474 Mon Sep 17 00:00:00 2001 From: Stephan Grein Date: Tue, 29 Oct 2024 16:32:15 +0100 Subject: [PATCH 1/3] Update deploy.yml Upgrade actions/checkout@v2 -> actions/checkout@v4. --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e8fe211e..202ab363 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 From a586a78f6af0728456639e616aad232364f2a7d8 Mon Sep 17 00:00:00 2001 From: Stephan Grein Date: Tue, 29 Oct 2024 16:42:28 +0100 Subject: [PATCH 2/3] Update deploy.yml According to docs username must be __token__ when using API token: https://pypi.org/help/#invalid-auth --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 202ab363..a1d0d12e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python setup.py sdist bdist_wheel From 1014fa7a2ea9d819070c06fbdbc96657345db069 Mon Sep 17 00:00:00 2001 From: Stephan Grein Date: Tue, 29 Oct 2024 16:44:51 +0100 Subject: [PATCH 3/3] 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. --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a1d0d12e..712772ec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,7 +30,7 @@ jobs: - name: Build and publish env: TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload dist/*