File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Publish
1+ name : Publish to PyPI
2+
23on :
34 push :
45 tags :
5- - ' *'
6+ - " v*"
7+ workflow_dispatch :
8+
69jobs :
7- build :
8- runs-on : ubuntu-latest
9- steps :
10- - uses : actions/checkout@v3
10+ build_wheels :
11+ name : Wheels on ${{ matrix.os }}
12+ runs-on : ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, windows-latest, macos-latest]
1116
12- - uses : actions/setup-python@v3
13- with :
14- python-version : 3.11
17+ env :
18+ PYTHONUTF8 : 1
19+ CIBW_BUILD : " cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
20+ CIBW_SKIP : " pp* *-musllinux_* *i686 *-win32"
1521
16- - run : |
17- pip install build
18- python3 -m build
22+ steps :
23+ - uses : actions/checkout@v4
1924
20- - uses : actions/upload-artifact@v3
25+ - name : Build wheels
26+ uses : martineastwood/nuwa-build-action@v1
2127 with :
22- path : ./dist
28+ nim-version : " 2.2.0 "
2329
24- pypi-publish :
25- needs : ['build']
30+ - uses : actions/upload-artifact@v4
31+ with :
32+ name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
33+ path : ./wheelhouse/*.whl
2634
27- name : upload release to PyPI
35+ build_sdist :
36+ name : Build source distribution
2837 runs-on : ubuntu-latest
29- permissions :
30- id-token : write
3138 steps :
32- - uses : actions/download-artifact@v3
39+ - uses : actions/checkout@v4
40+
41+ - name : Build sdist
42+ run : |
43+ pip install build
44+ python -m build --sdist
3345
34- - name : Publish package distributions to PyPI
35- uses : pypa/gh-action-pypi-publish@release/v1
46+ - uses : actions/upload-artifact@v4
3647 with :
37- packages-dir : artifact/
48+ name : cibw-sdist
49+ path : dist/*.tar.gz
You can’t perform that action at this time.
0 commit comments