-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 860 Bytes
/
CI.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
name: Build and Publish Wheels
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: cibuildwheel --output-dir wheel_output
env:
CIBW_ARCHS: "x86_64"
- name: Upload wheels as artifacts (optional)
uses: actions/upload-artifact@v3
with:
name: wheels-x86_64
path: wheel_output/*.whl
- name: Publish to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}