mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-06 00:55:50 -05:00
Use metadata_verify instead of check
This commit is contained in:
parent
ab50aa7f47
commit
9bda1cadd0
3 changed files with 9 additions and 7 deletions
|
@ -101,13 +101,15 @@ would now look like:
|
||||||
packages_dir: custom-dir/
|
packages_dir: custom-dir/
|
||||||
```
|
```
|
||||||
|
|
||||||
### Disabling twine check
|
### Disabling metadata verification
|
||||||
|
|
||||||
You can also disable the twine check with:
|
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
|
```yml
|
||||||
with:
|
with:
|
||||||
check: false
|
verify_metadata: false
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
@ -16,8 +16,8 @@ inputs:
|
||||||
description: The target directory for distribution
|
description: The target directory for distribution
|
||||||
required: false
|
required: false
|
||||||
default: dist
|
default: dist
|
||||||
check:
|
verify_metadata:
|
||||||
description: Check before uploading
|
description: Check metadata before uploading
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
branding:
|
branding:
|
||||||
|
@ -31,4 +31,4 @@ runs:
|
||||||
- ${{ inputs.password }}
|
- ${{ inputs.password }}
|
||||||
- ${{ inputs.repository_url }}
|
- ${{ inputs.repository_url }}
|
||||||
- ${{ inputs.packages_dir }}
|
- ${{ inputs.packages_dir }}
|
||||||
- ${{ inputs.check }}
|
- ${{ inputs.verify_metadata }}
|
||||||
|
|
|
@ -28,7 +28,7 @@ then
|
||||||
are in place should you face this problem.
|
are in place should you face this problem.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${INPUT_CHECK,,} != "false" ]] ; then
|
if [[ ${INPUT_VERIFY_METADATA,,} != "false" ]] ; then
|
||||||
twine check ${INPUT_PACKAGES_DIR%%/}/*
|
twine check ${INPUT_PACKAGES_DIR%%/}/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue