We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e3dc16 commit 6ef140aCopy full SHA for 6ef140a
2 files changed
.github/workflows/upload_pypi.yml
@@ -0,0 +1,34 @@
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
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
33
+ python -m build
34
+ twine upload dist/*
Examples/Notebook.ipynb
0 commit comments