File tree Expand file tree Collapse file tree 2 files changed +241
-0
lines changed
Expand file tree Collapse file tree 2 files changed +241
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Upload to PyPI
2+
3+ on :
4+ release :
5+ types :
6+ - created
7+ workflow_dispatch :
8+
9+ jobs :
10+ upload_pypi :
11+ name : Deploy to PyPI
12+ runs-on : ubuntu-latest
13+ defaults :
14+ run :
15+ shell : bash -l {0}
16+ steps :
17+ - uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+ - name : Set up Python
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : " 3.12"
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install build setuptools wheel twine
28+ - name : Package and Upload to PyPI
29+ env :
30+ TWINE_USERNAME : __token__
31+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
32+ run : |
33+ python -m build
34+ twine upload dist/*
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments