File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed
Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -31,37 +31,24 @@ jobs:
3131 with :
3232 miniforge-variant : Miniforge3
3333 miniforge-version : latest
34- python-version : ${{ matrix.python-version }}
34+ python-version : ' 3.12 '
3535 use-mamba : true
3636 auto-update-conda : true
3737 environment-file : .github/environment.yml
3838
39- - name : Install build
39+ - name : Install dependencies
40+ shell : bash -l {0}
4041 run : |
41- pip install build
42-
43- - name : Build sdist
44- run : python -m build --sdist -n
42+ python -m pip install build pipx twine
43+ pipx run build --sdist -Ccmake.define.CMAKE_BUILD_WITH_INSTALL_RPATH=ON
4544
4645 - uses : actions/upload-artifact@v4
4746 with :
4847 name : cibw-sdist
4948 path : dist/*.tar.gz
5049
51- upload_pypi :
52- name : Upload to PyPI
53- needs : [build_sdist]
54- runs-on : ubuntu-latest
55- environment : test
56- permissions :
57- id-token : write
58- if : github.event_name == 'release' && github.event.action == 'published'
59- steps :
60- - uses : actions/download-artifact@v4
61- with :
62- pattern : cibw-*
63- path : dist
64- merge-multiple : true
50+ - name : Publish package distributions to PyPI
51+ if : github.event_name == 'release' && github.event.action == 'published'
52+ uses : pypa/gh-action-pypi-publish@release/v1
6553
66- - uses : pypa/gh-action-pypi-publish@release/v1
6754
You can’t perform that action at this time.
0 commit comments