We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd025f6 commit 47d0308Copy full SHA for 47d0308
1 file changed
.github/workflows/pypi.yml
@@ -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
27
+ - uses: actions/download-artifact@v4
28
29
30
+ path: dist
31
+ - uses: pypa/gh-action-pypi-publish@release/v1
32
33
+ skip_existing: true
34
+ verbose: true
35
+ user: ${{ secrets.PYPI_USERNAME }}
36
+ password: ${{ secrets.PYPI_PASSWORD }}
0 commit comments