mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-29 12:00:57 -05:00
Merge PR #39
This change exposes an extra GitHub Action input called `verbose`. It allows to see `twine upload` detailed output if needed for debugging.
This commit is contained in:
commit
1f0bcf278d
3 changed files with 17 additions and 0 deletions
|
@ -130,6 +130,15 @@ default) setting as follows:
|
||||||
have steps for publishing to both PyPI and TestPyPI, consider only using
|
have steps for publishing to both PyPI and TestPyPI, consider only using
|
||||||
it for the latter, having the former fail loudly on duplicates.
|
it for the latter, having the former fail loudly on duplicates.
|
||||||
|
|
||||||
|
### For Debugging
|
||||||
|
|
||||||
|
Sometimes, `twine upload` can fail and to debug use the `verbose` setting as follows:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
with:
|
||||||
|
verbose: true
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The Dockerfile and associated scripts and documentation in this project
|
The Dockerfile and associated scripts and documentation in this project
|
||||||
|
|
|
@ -26,6 +26,10 @@ inputs:
|
||||||
exists in the target package index
|
exists in the target package index
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
verbose:
|
||||||
|
description: Show verbose output.
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
branding:
|
branding:
|
||||||
color: yellow
|
color: yellow
|
||||||
icon: upload-cloud
|
icon: upload-cloud
|
||||||
|
@ -39,3 +43,4 @@ runs:
|
||||||
- ${{ inputs.packages_dir }}
|
- ${{ inputs.packages_dir }}
|
||||||
- ${{ inputs.verify_metadata }}
|
- ${{ inputs.verify_metadata }}
|
||||||
- ${{ inputs.skip_existing }}
|
- ${{ inputs.skip_existing }}
|
||||||
|
- ${{ inputs.verbose }}
|
||||||
|
|
|
@ -40,6 +40,9 @@ if [[ ${INPUT_SKIP_EXISTING,,} != "false" ]] ; then
|
||||||
TWINE_EXTRA_ARGS=--skip-existing
|
TWINE_EXTRA_ARGS=--skip-existing
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${VERBOSE,,} != "false" ]] ; then
|
||||||
|
TWINE_EXTRA_ARGS="--verbose $TWINE_EXTRA_ARGS"
|
||||||
|
fi
|
||||||
|
|
||||||
TWINE_USERNAME="$INPUT_USER" \
|
TWINE_USERNAME="$INPUT_USER" \
|
||||||
TWINE_PASSWORD="$INPUT_PASSWORD" \
|
TWINE_PASSWORD="$INPUT_PASSWORD" \
|
||||||
|
|
Loading…
Reference in a new issue