Merge pull request #154 from SatoshiPortal/0.4.0 #2
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" | |
| on: | |
| push: | |
| tags: | |
| # Publish on any tag starting with a `v`, e.g., v0.1.0 | |
| - v* | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| name: Release python bindings | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Setup rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install Python 3.13 | |
| run: uv python install 3.13 | |
| - name: Build | |
| working-directory: bindings | |
| run: make build-python | |
| - name: Repair wheel with auditwheel | |
| working-directory: bindings/python | |
| run: | | |
| uvx auditwheel repair dist/*-py3-none-any.whl --wheel-dir dist/ | |
| rm dist/*-py3-none-any.whl | |
| - name: Smoke test (wheel) | |
| working-directory: bindings/python | |
| run: uv run --isolated --no-project --with dist/*.whl python -c "import boltz_client" | |
| - name: Smoke test (source distribution) | |
| working-directory: bindings/python | |
| run: uv run --isolated --no-project --with dist/*.tar.gz python -c "import boltz_client" | |
| - name: Publish | |
| working-directory: bindings/python | |
| run: uv publish |