Skip to content

0.1.7

0.1.7 #11

Workflow file for this run

name: Deploy
on:
release:
types: [published]
jobs:
build-wheel-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_x86_64
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
build-requirements: 'mypy'
- name: Upload wheel
uses: actions/upload-artifact@v1
with:
name: dist
path: dist
build-wheel-matrix:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: setup xcode version
if: startsWith(matrix.os, 'macos')
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13'
- name: python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build
run: |
pip wheel . --no-deps -w dist
- name: Upload wheel
uses: actions/upload-artifact@v1
with:
name: dist
path: dist
deploy:
runs-on: ubuntu-latest
needs: [build-wheel-linux, build-wheel-matrix]
steps:
- name: checkout source code
uses: actions/checkout@v1
- name: Load artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Remove linux_x86_64 wheels
run: rm dist/*-linux_x86_64.whl
- name: Publish distribution package to PyPI
#if: env.branch == 'master'
uses: pypa/gh-action-pypi-publish@v1
with:
password: ${{ secrets.pypi_password }}