0.1.0a6 #3
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: publish to PyPI | |
| on: | |
| release: | |
| types: ["published", "created", "released"] | |
| jobs: | |
| deploy: | |
| strategy: | |
| matrix: | |
| python-version: ['313', '314'] | |
| # NOTE this only runs on ubuntu because | |
| # 'This action is only able to run under GNU/Linux environments' | |
| # ~ gh-action-pypi-publish 1.13.0, 29.12.2025 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install setuptools | |
| - name: Build package | |
| uses: pypa/[email protected] | |
| env: | |
| CIBW_BUILD: cp${{matrix.python-version}}-* | |
| with: | |
| output-dir: dist/ | |
| - name: Publish package | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: dist/ |