Trim value for text input when the input is blurred #309
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 | |
| # Always tests wheel building, but only publish to PyPI on pushed tags. | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - ".github/workflows/*.yaml" | |
| - "!.github/workflows/release.yaml" | |
| push: | |
| branches: | |
| - "main" | |
| tags: ["**"] | |
| workflow_dispatch: | |
| jobs: | |
| build-release: | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| # Fetch full history so we don't run into trouble with setuptools_scm | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: install build package | |
| run: | | |
| pip install --upgrade pip | |
| pip install build | |
| pip freeze | |
| - name: build release | |
| run: | | |
| python -m build --sdist --wheel . | |
| ls -l dist | |
| - name: publish to pypi | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| if: startsWith(github.ref, 'refs/tags/') |