|
1 | | -name: Build Wheels |
| 1 | +name: Build |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
@@ -66,16 +66,16 @@ jobs: |
66 | 66 | env: |
67 | 67 | GITHUB_ACTIONS: true |
68 | 68 |
|
69 | | - - name: Build wheel |
70 | | - run: python -m build --wheel |
| 69 | + - name: Build wheel and sdist |
| 70 | + run: python -m build |
71 | 71 | env: |
72 | 72 | GITHUB_ACTIONS: true |
73 | 73 |
|
74 | | - - name: Upload wheel artifact |
| 74 | + - name: Upload artifacts |
75 | 75 | uses: actions/upload-artifact@v4 |
76 | 76 | with: |
77 | | - name: wheel-${{ matrix.os }}-py${{ matrix.python-version }} |
78 | | - path: dist/*.whl |
| 77 | + name: dist-${{ matrix.os }}-py${{ matrix.python-version }} |
| 78 | + path: dist/* |
79 | 79 | retention-days: 7 |
80 | 80 |
|
81 | 81 | - name: Upload compiled library |
@@ -105,29 +105,24 @@ jobs: |
105 | 105 | - name: Organize compiled libraries |
106 | 106 | run: | |
107 | 107 | mkdir -p release-libs |
108 | | - # Copy and rename for each platform/python to ensure uniqueness |
109 | 108 | find artifacts -name "*.dll" -exec cp {} release-libs/ \; || true |
110 | 109 | find artifacts -name "*.so" -exec cp {} release-libs/ \; || true |
111 | 110 | find artifacts -name "*.dylib" -exec cp {} release-libs/ \; || true |
112 | | - |
113 | | - # Renaissance naming for native libs to match what setup.py expects |
114 | | - # We rename them to include the OS name if they are distinct |
115 | | - # Actually, if we just upload the .whl, most users will get the lib from the whl. |
116 | | - # But for source installs, we provide these as fallbacks. |
117 | 111 | ls -la release-libs/ |
118 | 112 | |
119 | | - - name: Organize wheels |
| 113 | + - name: Organize dist files |
120 | 114 | run: | |
121 | | - mkdir -p release-wheels |
122 | | - find artifacts -name "*.whl" -exec cp {} release-wheels/ \; |
123 | | - ls -la release-wheels/ |
| 115 | + mkdir -p release-dist |
| 116 | + find artifacts -name "*.whl" -exec cp {} release-dist/ \; |
| 117 | + find artifacts -name "*.tar.gz" -exec cp {} release-dist/ \; |
| 118 | + ls -la release-dist/ |
124 | 119 | |
125 | 120 | - name: Create Release |
126 | 121 | uses: softprops/action-gh-release@v1 |
127 | 122 | with: |
128 | 123 | files: | |
129 | 124 | release-libs/* |
130 | | - release-wheels/* |
| 125 | + release-dist/* |
131 | 126 | draft: false |
132 | 127 | prerelease: false |
133 | 128 | generate_release_notes: true |
|
0 commit comments