update bindings #789
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: Build Source Distribution | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_wheels: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'simon-stahlberg' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies and requirements | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install setuptools twine | |
- name: Build source distribution | |
run: python setup.py sdist | |
- name: Upload to PyPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: twine upload --skip-existing --repository-url https://upload.pypi.org/legacy/ dist/* |