File tree 1 file changed +17
-16
lines changed
1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change 26
26
- name : Build wheels for CPython
27
27
28
28
29
+ - uses : actions/upload-artifact@v4
30
+ with :
31
+ name : wheels-${{ matrix.os }}
32
+ path : ./wheelhouse/*.whl
33
+
29
34
build_sdist :
30
35
name : Build source distribution
31
36
runs-on : ubuntu-latest
@@ -42,31 +47,27 @@ jobs:
42
47
pip install build
43
48
python -m build -s .
44
49
45
- upload_artifacts :
46
- needs : [build_wheels, build_sdist]
47
- name : Upload build artifacts
48
- runs-on : ubuntu-latest
49
- steps :
50
50
- uses : actions/upload-artifact@v4
51
51
with :
52
- name : wheels_and_tarball
53
- path : |
54
- ./dist/*.tar.gz
55
- ./wheelhouse/*.whl
52
+ name : sdist
53
+ path : ./dist/*.tar.gz
56
54
57
55
upload_pypi :
58
- needs : upload_artifacts
56
+ needs : [build_wheels, build_sdist]
59
57
runs-on : ubuntu-latest
60
58
# to publish when a GitHub Release is created:
61
- if : github.event_name == 'release' && github.event.action == 'released'
59
+ # if: github.event_name == 'release' && github.event.action == 'released'
62
60
steps :
63
61
- uses : actions/download-artifact@v4
64
62
with :
65
- name : wheels_and_tarball
66
63
path : dist
64
+ merge-multiple : true
67
65
68
- - uses : pypa/gh-action-pypi-publish@release/v1
69
- with :
70
- user : __token__
71
- password : ${{ secrets.PYPI_TOKEN }}
66
+ - name : Display structure of downloaded files
67
+ run : ls -lR dist
68
+
69
+ # - uses: pypa/gh-action-pypi-publish@release/v1
70
+ # with:
71
+ # user: __token__
72
+ # password: ${{ secrets.PYPI_TOKEN }}
72
73
# repository_url: https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments