bump: build number increase #8
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 | |
| # Publishes when you push a version tag like v1.1.0. | |
| # Release flow: bump the version in pyproject.toml + fluttership/__init__.py, | |
| # commit, then: git tag v1.1.0 && git push origin v1.1.0 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| # Declaring this block replaces ALL default permissions, so we must list | |
| # every scope we need explicitly. | |
| contents: read # actions/checkout needs this to clone the repo | |
| id-token: write # PyPI Trusted Publishing (OIDC) — no API token needed | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Build distribution | |
| run: | | |
| python -m pip install --upgrade build | |
| python -m build | |
| - name: Check distribution | |
| run: | | |
| python -m pip install --upgrade twine | |
| python -m twine check dist/* | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |