Skip to content

Commit

Permalink
GH actions windows fix (#76)
Browse files Browse the repository at this point in the history
* Testing windows

* test

* test

* test
  • Loading branch information
tommyod committed Nov 21, 2020
1 parent 41c3da4 commit a8d0af6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,22 @@ jobs:
# ======================= BUILD WHEELS AND UPLOAD TO PYPI ==================================

- name: Build wheels ${{ matrix.python-version }} on ${{ matrix.os }}
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
- name: Build wheels (non-windows) ${{ matrix.python-version }} on ${{ matrix.os }}
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' && matrix.os != 'windows-latest'
env:
CIBW_BUILD: 'cp36-* cp37-* cp38-*'
PYPI_PASSWORD: ${{ secrets.pypi_password }}
run: |
pip install cibuildwheel twine --upgrade;
python -m cibuildwheel --output-dir dist;
python -m twine upload dist/* -u tommyod -p "$PYPI_PASSWORD" --skip-existing;
- name: Build wheels (windows) ${{ matrix.python-version }} on ${{ matrix.os }}
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' && matrix.os == 'windows-latest'
env:
CIBW_BUILD: 'cp36-* cp37-* cp38-*'
PYPI_PASSWORD: ${{ secrets.pypi_password }}
run: |
pip install cibuildwheel twine --upgrade;
python -m cibuildwheel --output-dir dist;
python -m twine upload dist/* -u tommyod -p "${env:PYPI_PASSWORD}" --skip-existing;

0 comments on commit a8d0af6

Please sign in to comment.