From 5b3c290a0504af8d24d7433ca4579de8dfed38ed Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Tue, 26 Apr 2022 22:47:51 -0500 Subject: [PATCH] Update action.yml (#4) --- action.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/action.yml b/action.yml index 59d062d..ca85784 100644 --- a/action.yml +++ b/action.yml @@ -50,11 +50,6 @@ inputs: Publish to PyPi Default is false default: false - pypi_custom_publish: - description: | - Publish to PyPi - Default is false - default: false # Advanced Settings pytest_markers: @@ -65,7 +60,7 @@ inputs: description: | PyPi Target. Use this to point to private or test locations. Default testpypi - default: 'testpypi' + default: 'pypi' pypi_password: description: | Credentials for PyPi @@ -151,20 +146,14 @@ runs: python -m pytest '${{ inputs.pytest_markers }}' tests shell: bash - - if: ${{ inputs.pypi_publish == 'true' || inputs.pypi_custom_publish == 'true' }} + - if: ${{ inputs.pypi_publish == 'true' }} run: | cd "${{ inputs.root }}" - pwd - ls python -m pip install --upgrade pip python -m pip install flit - if ${{ inputs.pypi_custom_publish }}; then - repository="--repository ${{ inputs.pypi_repo }}" - fi - - python -m flit publish $repository --pypirc .pypirc + python -m flit publish $repository --repository ${{ inputs.pypi_repo }} --pypirc .pypirc env: FLIT_USERNAME: __token__ FLIT_PASSWORD: ${{ inputs.pypi_password }}