Skip to content

Commit abdb81a

Browse files
committed
chore: add test upload workflow
1 parent 55ecdaf commit abdb81a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

0 commit comments

Comments
 (0)