|
13 | 13 | name: Wheel builder
|
14 | 14 |
|
15 | 15 | on:
|
| 16 | + release: |
| 17 | + types: [published] |
16 | 18 | schedule:
|
17 | 19 | # 3:27 UTC every day
|
18 | 20 | - cron: "27 3 * * *"
|
@@ -101,7 +103,7 @@ jobs:
|
101 | 103 | - [macos-14, macosx_arm64]
|
102 | 104 | - [windows-2022, win_amd64]
|
103 | 105 | - [windows-11-arm, win_arm64]
|
104 |
| - python: [["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]] |
| 106 | + python: [["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"], ["cp314", "3.14"], ["cp314t", "3.14"]] |
105 | 107 | include:
|
106 | 108 | # Build Pyodide wheels and upload them to Anaconda.org
|
107 | 109 | # NOTE: this job is similar to the one in unit-tests.yml except for the fact
|
@@ -216,3 +218,41 @@ jobs:
|
216 | 218 | source ci/upload_wheels.sh
|
217 | 219 | set_upload_vars
|
218 | 220 | upload_wheels
|
| 221 | +
|
| 222 | + publish: |
| 223 | + if: > |
| 224 | + github.repository == 'pandas-dev/pandas' && |
| 225 | + github.event_name == 'release' && |
| 226 | + startsWith(github.ref, 'refs/tags/v') |
| 227 | +
|
| 228 | + needs: |
| 229 | + - build_sdist |
| 230 | + - build_wheels |
| 231 | + |
| 232 | + runs-on: ubuntu-latest |
| 233 | + |
| 234 | + environment: |
| 235 | + name: pypi |
| 236 | + permissions: |
| 237 | + id-token: write # OIDC for Trusted Publishing |
| 238 | + contents: read |
| 239 | + |
| 240 | + steps: |
| 241 | + - name: Download all artefacts |
| 242 | + uses: actions/download-artifact@v5 |
| 243 | + with: |
| 244 | + path: dist # everything lands in ./dist/** |
| 245 | + |
| 246 | + - name: Collect files |
| 247 | + run: | |
| 248 | + mkdir -p upload |
| 249 | + # skip any wheel that contains 'pyodide' |
| 250 | + find dist -name '*pyodide*.whl' -prune -o \ |
| 251 | + -name '*.whl' -exec mv {} upload/ \; |
| 252 | + find dist -name '*.tar.gz' -exec mv {} upload/ \; |
| 253 | +
|
| 254 | + - name: Publish to **PyPI** (Trusted Publishing) |
| 255 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 256 | + with: |
| 257 | + packages-dir: upload |
| 258 | + skip-existing: true |
0 commit comments