-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (45 loc) · 1.33 KB
/
package.yml
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
52
53
54
---
name: Python Packaging
on:
workflow_run:
workflows: ["Validate"]
types:
- completed
jobs:
install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# see https://github.com/actions/runner-images#available-images
os: [macos-latest, ubuntu-latest]
python-version: ['3.12']
steps:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: git checkout
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
submodules: true
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.15.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: pp* cp38-* cp39-* cp310-* cp311-* cp312-*
CIBW_ARCHS: "auto64"
- name: Build sdist
if: ${{ matrix.os == 'ubuntu-latest' }}
run: ./build-sdist.sh
- name: List wheels
run: ls -l ./wheelhouse
- name: Upload
if: ${{ github.ref_name == 'master' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload --verbose --skip-existing wheelhouse/*