pipy fix #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | ||
on: push | ||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Build manylinux Python wheels | ||
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64 | ||
with: | ||
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311' | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: linux-wheel | ||
path: dist/*-manylinux*.whl | ||
deploy-pypi: | ||
runs-on: ubuntu-latest | ||
needs: [build-linux] | ||
if: github.ref == 'refs/heads/master' # We only deploy on master commits | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@master | ||
with: | ||
ls | ||
fetch-depth: 0 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- uses: actions/download-artifact@master | ||
with:ls | ||
name: linux-wheel | ||
path: dist | ||
- run: ls dist | ||
- name: Upload to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |