2.0.0rc8 #25
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - alpha | |
| - beta | |
| - rc | |
| paths: | |
| - 'streamable/__init__.py' | |
| jobs: | |
| pypi: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install dependencies | |
| run: | | |
| make venv | |
| uv pip install build twine | |
| - name: Build | |
| run: uv run python -m build | |
| - name: Publish | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.pypi_token }} | |
| run: | | |
| uv run twine upload dist/* --skip-existing | |
| - name: Tag | |
| run: | | |
| TAG=$(python -c 'from streamable import __version__; print(__version__)' | sed 's/^/v/') | |
| git config --global user.name 'github-actions' | |
| git config --global user.email 'github-actions@github.com' | |
| git tag -a $TAG -m"Release $TAG" | |
| git push origin $TAG --force |