From 7b5638f0586ef6faa026f972ff92b8fb3df135c1 Mon Sep 17 00:00:00 2001 From: deniselj24 <122917446+deniselj24@users.noreply.github.com> Date: Mon, 14 Aug 2023 11:44:57 -0700 Subject: [PATCH] Update upload-to-pypi.yml --- .github/workflows/upload-to-pypi.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index faf9e4d0c..c6a92ca4f 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -3,6 +3,11 @@ name: Upload to PyPI on: release: types: [published] + workflow_dispatch: + inputs: + PYPI_API_TOKEN: + required: true + description: your API token on PyPI jobs: pypi: @@ -24,4 +29,4 @@ jobs: if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_API_TOKEN }} + password: ${{ github.event.inputs.PYPI_API_TOKEN }} #${{ secrets.PYPI_API_TOKEN }}