-
Notifications
You must be signed in to change notification settings - Fork 28
58 lines (51 loc) · 1.35 KB
/
cibuildwheel.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
55
56
57
58
name: Build
on:
release:
types:
- created
jobs:
#build_wheels:
# name: Build wheels on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# # macos-13 is an intel runner, macos-14 is apple silicon
# os: [ubuntu-latest, windows-latest, macos-13]
# steps:
# - uses: actions/checkout@v4
# - name: Build wheels
# uses: pypa/cibuildwheel@v2.19.1
# env:
# CIBW_SOME_OPTION: value
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: "{package}/pyproject.toml"
# - name: Upload release binaries
# uses: alexellis/upload-assets@0.4.0
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# asset_paths: '["./dist/*.whl"]'
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- name: Upload release sdist
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./dist/*.tar.gz"]'
permissions:
contents: write
checks: write
actions: read
issues: read
packages: write
pull-requests: read
repository-projects: read
statuses: read