chore!: bump minimum Python version to 3.11 (#81) #24
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: Release Please | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1 | |
| id: release | |
| with: | |
| config-file: .release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| # Only release to PyPI when a new release is created | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - name: Setup Nix | |
| if: ${{ steps.release.outputs.release_created }} | |
| uses: ./.github/actions/setup-nix | |
| - name: Update version in __init__.py | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: nix develop --command just update-version | |
| - name: Build and publish package | |
| if: ${{ steps.release.outputs.release_created }} | |
| env: | |
| UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
| run: | | |
| nix develop --command just build | |
| nix develop --command just publish |