-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.21 KB
/
python_build_wheel.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Python Build Wheel
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-14]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build wheels
uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
with:
# Use a generated name, since upload-artifacts cannot upload files as is,
# and running jobs in matrix result in a artifact name clash.
name: python-wheels-${{ matrix.os }}
path: wheelhouse/*.whl
retention-days: 7
upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
pattern: python-wheels-*
path: dist
merge-multiple: true
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_token }}
# repository_url: https://test.pypi.org/legacy/