remove en-core-web-sm #13
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: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build-and-publish: | |
| name: Build and publish package (uv) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up uv and Python | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Pull dependencies | |
| run: | | |
| uv sync | |
| - name: Derive version from tag and update pyproject | |
| if: startsWith(github.ref, 'refs/tags/') | |
| env: | |
| VERSION: ${{ github.ref_name }} | |
| run: | | |
| VERSION="${VERSION#v}" | |
| echo "Tag: ${{ github.ref_name }} -> Version: ${VERSION}" | |
| VERSION="${VERSION}" uv run python scripts/set_version_from_tag.py | |
| grep -nE '^version\s*=\s*"' pyproject.toml || true | |
| - name: Build sdist and wheel with uv | |
| run: | | |
| uv build | |
| - name: Publish to PyPI with uv (Trusted Publisher) | |
| run: | | |
| uv publish --check-url https://pypi.org/simple |