Skip to content

Commit 6ef140a

Browse files
committed
PYPI+NEW_EXAMPLE
1 parent 2e3dc16 commit 6ef140a

File tree

2 files changed

+241
-0
lines changed

2 files changed

+241
-0
lines changed

.github/workflows/upload_pypi.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
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/*

Examples/Notebook.ipynb

Lines changed: 207 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)