Skip to content

Commit

Permalink
Update upload-to-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deniselj24 authored Aug 14, 2023
1 parent c951a5b commit 7b5638f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/upload-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 7b5638f

Please sign in to comment.