📝 [Doc] README: update example with latest feature, and upgrad… #36
This file contains 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: Build package and publish to PyPI | |
on: | |
push: | |
paths: | |
- "pyproject.toml" | |
workflow_dispatch: | |
concurrency: | |
group: pypi | |
cancel-in-progress: true | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip build twine | |
- name: Build and publish | |
run: | | |
python -m build | |
python -m twine upload dist/* --skip-existing | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} |