mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-09 02:13:33 -05:00
Merge PR #33
This change implements running dists verification before performing actual upload. It is controlled by the input called `verify_metadata` which is on by default.
This commit is contained in:
commit
c37b99ec5f
3 changed files with 20 additions and 0 deletions
11
README.md
11
README.md
|
@ -101,6 +101,17 @@ would now look like:
|
||||||
packages_dir: custom-dir/
|
packages_dir: custom-dir/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Disabling metadata verification
|
||||||
|
|
||||||
|
It is recommended that you run `twine check` just after producing your files,
|
||||||
|
but this also runs `twine check` before upload. You can also disable the twine
|
||||||
|
check with:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
with:
|
||||||
|
verify_metadata: false
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The Dockerfile and associated scripts and documentation in this project
|
The Dockerfile and associated scripts and documentation in this project
|
||||||
|
|
|
@ -16,6 +16,10 @@ inputs:
|
||||||
description: The target directory for distribution
|
description: The target directory for distribution
|
||||||
required: false
|
required: false
|
||||||
default: dist
|
default: dist
|
||||||
|
verify_metadata:
|
||||||
|
description: Check metadata before uploading
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
branding:
|
branding:
|
||||||
color: yellow
|
color: yellow
|
||||||
icon: upload-cloud
|
icon: upload-cloud
|
||||||
|
@ -27,3 +31,4 @@ runs:
|
||||||
- ${{ inputs.password }}
|
- ${{ inputs.password }}
|
||||||
- ${{ inputs.repository_url }}
|
- ${{ inputs.repository_url }}
|
||||||
- ${{ inputs.packages_dir }}
|
- ${{ inputs.packages_dir }}
|
||||||
|
- ${{ inputs.verify_metadata }}
|
||||||
|
|
|
@ -28,6 +28,10 @@ then
|
||||||
are in place should you face this problem.
|
are in place should you face this problem.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${INPUT_VERIFY_METADATA,,} != "false" ]] ; then
|
||||||
|
twine check ${INPUT_PACKAGES_DIR%%/}/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
TWINE_USERNAME="$INPUT_USER" \
|
TWINE_USERNAME="$INPUT_USER" \
|
||||||
TWINE_PASSWORD="$INPUT_PASSWORD" \
|
TWINE_PASSWORD="$INPUT_PASSWORD" \
|
||||||
|
|
Loading…
Reference in a new issue