Skip to content

Commit 176ae50

Browse files
committed
feat: Add twine check before upload #30
1 parent 37e305e commit 176ae50

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ would now look like:
101101
packages_dir: custom-dir/
102102
```
103103

104+
### Disabling twine check
105+
106+
You can also disable the twine check with:
107+
108+
```yml
109+
with:
110+
check: false
111+
```
112+
104113
## License
105114

106115
The Dockerfile and associated scripts and documentation in this project

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ inputs:
1616
description: The target directory for distribution
1717
required: false
1818
default: dist
19+
check:
20+
description: Check before uploading
21+
required: false
22+
default: true
1923
branding:
2024
color: yellow
2125
icon: upload-cloud
@@ -27,3 +31,4 @@ runs:
2731
- ${{ inputs.password }}
2832
- ${{ inputs.repository_url }}
2933
- ${{ inputs.packages_dir }}
34+
- ${{ inputs.check }}

twine-upload.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ then
2828
are in place should you face this problem.
2929
fi
3030

31+
if [[ ${INPUT_CHECK,,} != "false" ]] ; then
32+
exec twine check ${INPUT_PACKAGES_DIR%%/}/*
33+
fi
34+
3135

3236
TWINE_USERNAME="$INPUT_USER" \
3337
TWINE_PASSWORD="$INPUT_PASSWORD" \

0 commit comments

Comments
 (0)