Skip to content

Commit d7872a6

Browse files
committed
Change dist param to packages-dir
1 parent 4f43049 commit d7872a6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ would now look like:
9898
with:
9999
user: __token__
100100
password: ${{ secrets.test_pypi_password }}
101-
dist: custom-dir/
101+
packages-dir: custom-dir/
102102
```
103103

104104
## License

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
repository_url:
1313
description: The repository URL to use
1414
required: false
15-
dist:
15+
packages-dir:
1616
description: The target directory for distribution
1717
required: false
1818
default: dist
@@ -26,4 +26,4 @@ runs:
2626
- ${{ inputs.user }}
2727
- ${{ inputs.password }}
2828
- ${{ inputs.repository_url }}
29-
- ${{ inputs.dist }}
29+
- ${{ inputs.packages-dir }}

twine-upload.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ then
1717
fi
1818

1919
if [[
20-
! -d ${INPUT_DIST%%/}/ ||
21-
"`ls -l ${INPUT_DIST%%/}/*.tar.gz ${INPUT_DIST%%/}/*.whl`" == "total 0"
20+
! -d ${INPUT_PACKAGES_DIR%%/}/ ||
21+
"`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0"
2222
]]
2323
then
2424
>&2 echo \
2525
[WARNING]: \
2626
It looks like there are no Python distribution packages to \
27-
publish in the directory '"${INPUT_DIST%%/}/"'. Please verify that they \
27+
publish in the directory '"${INPUT_PACKAGES_DIR%%/}/"'. Please verify that they \
2828
are in place should you face this problem.
2929
fi
3030

3131

3232
TWINE_USERNAME="$INPUT_USER" \
3333
TWINE_PASSWORD="$INPUT_PASSWORD" \
3434
TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL" \
35-
exec twine upload ${INPUT_DIST%%/}/*
35+
exec twine upload ${INPUT_PACKAGES_DIR%%/}/*

0 commit comments

Comments
 (0)