Skip to content

Commit 47d0308

Browse files
authored
fix: adding pypi
1 parent fd025f6 commit 47d0308

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "📦 PyPI "
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
make_sdist:
7+
name: Make SDist
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Build SDist
13+
run: |
14+
pip install build
15+
python -m build
16+
17+
- uses: actions/upload-artifact@v4
18+
with:
19+
name: dist
20+
path: dist/
21+
22+
upload_to_pypi:
23+
needs: ["make_sdist"]
24+
runs-on: "ubuntu-latest"
25+
26+
steps:
27+
- uses: actions/download-artifact@v4
28+
with:
29+
name: dist
30+
path: dist
31+
- uses: pypa/gh-action-pypi-publish@release/v1
32+
with:
33+
skip_existing: true
34+
verbose: true
35+
user: ${{ secrets.PYPI_USERNAME }}
36+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)