mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-21 16:11:01 -05:00
Change dist
param to packages-dir
This commit is contained in:
parent
4f4304928f
commit
d7872a6165
3 changed files with 7 additions and 7 deletions
|
@ -98,7 +98,7 @@ would now look like:
|
|||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.test_pypi_password }}
|
||||
dist: custom-dir/
|
||||
packages-dir: custom-dir/
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
|
@ -12,7 +12,7 @@ inputs:
|
|||
repository_url:
|
||||
description: The repository URL to use
|
||||
required: false
|
||||
dist:
|
||||
packages-dir:
|
||||
description: The target directory for distribution
|
||||
required: false
|
||||
default: dist
|
||||
|
@ -26,4 +26,4 @@ runs:
|
|||
- ${{ inputs.user }}
|
||||
- ${{ inputs.password }}
|
||||
- ${{ inputs.repository_url }}
|
||||
- ${{ inputs.dist }}
|
||||
- ${{ inputs.packages-dir }}
|
||||
|
|
|
@ -17,14 +17,14 @@ then
|
|||
fi
|
||||
|
||||
if [[
|
||||
! -d ${INPUT_DIST%%/}/ ||
|
||||
"`ls -l ${INPUT_DIST%%/}/*.tar.gz ${INPUT_DIST%%/}/*.whl`" == "total 0"
|
||||
! -d ${INPUT_PACKAGES_DIR%%/}/ ||
|
||||
"`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0"
|
||||
]]
|
||||
then
|
||||
>&2 echo \
|
||||
[WARNING]: \
|
||||
It looks like there are no Python distribution packages to \
|
||||
publish in the directory '"${INPUT_DIST%%/}/"'. Please verify that they \
|
||||
publish in the directory '"${INPUT_PACKAGES_DIR%%/}/"'. Please verify that they \
|
||||
are in place should you face this problem.
|
||||
fi
|
||||
|
||||
|
@ -32,4 +32,4 @@ fi
|
|||
TWINE_USERNAME="$INPUT_USER" \
|
||||
TWINE_PASSWORD="$INPUT_PASSWORD" \
|
||||
TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL" \
|
||||
exec twine upload ${INPUT_DIST%%/}/*
|
||||
exec twine upload ${INPUT_PACKAGES_DIR%%/}/*
|
||||
|
|
Loading…
Reference in a new issue