-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 921 Bytes
/
build.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 upload to PyPI
on:
push:
tags: ['*']
jobs:
build_wheels:
name: Build on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
steps:
- uses: actions/checkout@v3
name: Checkout repository
- uses: pypa/[email protected]
name: Build wheels
with:
output-dir: dist
- uses: actions/upload-artifact@v3
name: Upload wheel artifacts
with:
path: dist/*.whl
upload_pypi:
name: Upload wheels to PyPI
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
name: Download wheel artifacts
with:
name: artifact
path: dist
- uses: pypa/[email protected]
name: Publish to PyPI
with:
password: ${{secrets.PYPI_TOKEN}}