2.1.7 release #9
Workflow file for this run
This file contains hidden or 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: PyPi Upload | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| deploy-sdist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install setuptools wheel twine | |
| pip install -r dev-requirements.txt | |
| - name: Create sdist | |
| run: | | |
| python setup.py sdist | |
| - name: Copy files | |
| run: | | |
| mkdir output | |
| cp dist/*.tar.gz output | |
| - name: Publish | |
| uses: pypa/[email protected] | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| packages-dir: output/ | |
| deploy-wheels: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install cibuildwheel==2.23.2 | |
| - name: Build Python wheels | |
| run: python -m cibuildwheel --output-dir wheelhouse | |
| - name: Copy files | |
| run: | | |
| mkdir output | |
| cp wheelhouse/*.whl output | |
| - name: Publish | |
| uses: pypa/[email protected] | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| packages-dir: output/ | |