File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload Test File
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ file_path :
7
+ description : ' Path to the file to upload'
8
+ required : true
9
+ default : ' dist/test-file-0.1-py3-none-any.whl'
10
+
11
+ jobs :
12
+ upload :
13
+ name : Upload Test File to PyPI
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Set up Python
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version : ' 3.10'
24
+
25
+ - name : Install Twine
26
+ run : pip install twine
27
+
28
+ - name : Upload file to PyPI
29
+ env :
30
+ TWINE_USERNAME : __token__
31
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
32
+ run : |
33
+ twine upload --non-interactive --skip-existing ${{ github.event.inputs.file_path }}
You can’t perform that action at this time.
0 commit comments