From 34bd3cfbf2753c0d893c098234d7069704864c38 Mon Sep 17 00:00:00 2001 From: Stephan Grein Date: Tue, 29 Oct 2024 16:01:48 +0100 Subject: [PATCH 1/2] Update deploy.yml --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 582dd2d5..e8fe211e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,6 +3,7 @@ name: Deploy on: release: types: [created] + workflow_dispatch: jobs: From 1d75532969356effad3a55b505ba90b3b416e726 Mon Sep 17 00:00:00 2001 From: Stephan Grein Date: Wed, 30 Oct 2024 10:05:29 +0100 Subject: [PATCH 2/2] 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. --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e8fe211e..712772ec 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 @@ -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/*