-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (39 loc) · 1.15 KB
/
build_win.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
name: build wheels for windows
on:
push:
tags:
- v*
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
architecture: [x64, x86]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
architecture: ${{ matrix.architecture }}
python-version: ${{ matrix.python-version }}
- name: build wheel
run: |
git submodule update --init --recursive
pip install -U wheel
python setup.py bdist_wheel
shell: bash
- name: upload wheel
uses: actions/upload-artifact@v1
with:
name: dist_${{ matrix.os }}_${{ matrix.architecture }}_${{ matrix.python-version }}
path: dist
- name: Publish to PyPI
env:
PYPI_USERNAME: ${{ secrets.PYPI_USER }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*
shell: bash