Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dciborow authored Apr 26, 2022
1 parent e4daffa commit 77049e7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,16 @@ runs:
- uses: actions/setup-python@v2.2.2
with:
python-version: 3.7
- run: |
- if ${{ inputs.pypi_publish || inputs.pypi_custom_publish }}
run: |
python -m pip install --upgrade pip
python -m pip install flit
if ${{ inputs.pypi_publish }}; then
python -m flit publish
fi
if ${{ inputs.pypi_custom_publish }}; then
python -m flit publish --repository ${{ inputs.pypi_repo }}
repository="--repository ${{ inputs.pypi_repo }}"
fi
python -m flit publish $repository
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ inputs.pypi_password }}
Expand Down

0 comments on commit 77049e7

Please sign in to comment.