File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Python Package to PyPI when Release is Created
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ pypi-publish :
9+ name : Publish release to PyPI
10+ runs-on : ubuntu-latest
11+ environment :
12+ name : pypi
13+ url : https://pypi.org/p/tomobar
14+ permissions :
15+ id-token : write
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : Set up Python
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : " 3.10"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install setuptools wheel
26+ pip install --upgrade build
27+ - name : Build package
28+ run : |
29+ python -m build
30+ - name : Publish package distributions to PyPI
31+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ channels:
44 - httomo
55dependencies :
66 - conda-forge::cupy=12.3.0
7- - conda-forge::numpy<=1.25
7+ - conda-forge::numpy
88 - conda-forge::nvtx
99 - conda-forge::scipy
1010 - conda-forge::python
You can’t perform that action at this time.
0 commit comments