-
Notifications
You must be signed in to change notification settings - Fork 59
61 lines (55 loc) · 1.63 KB
/
maxflow-deployment.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
59
60
61
name: PyMaxflow deployment
on:
push:
tags: 'v[0-9]+*'
jobs:
deploy-sdist:
name: Deploy source distribution
runs-on: ubuntu-latest
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build sdist
run: python -m build --sdist
- name: Deploy sdist
run: |
python3 -m pip install twine
python3 -m twine upload --skip-existing dist/*
deploy-wheels:
name: Deploy wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CIBW_ARCHS: "auto64"
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
CIBW_SKIP: "*musllinux* pp*-win* pp*-macosx* pp*"
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel
- name: Build wheels
run: python3 -m cibuildwheel --output-dir wheelhouse
- name: Deploy
run: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl