.github/workflows/pypi.yml
raw| 1 | name: Upload Python Package |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | tags: |
| 7 | - "*" |
| 8 | |
| 9 | jobs: |
| 10 | deploy: |
| 11 | runs-on: ubuntu-latest |
| 12 | timeout-minutes: 10 |
| 13 | |
| 14 | steps: |
| 15 | - name: Checkout |
| 16 | uses: actions/checkout@v4 |
| 17 | |
| 18 | - name: Install uv |
| 19 | uses: astral-sh/setup-uv@v6 |
| 20 | with: |
| 21 | enable-cache: true |
| 22 | |
| 23 | - name: Build |
| 24 | run: uv build |
| 25 | |
| 26 | - name: Publish |
| 27 | run: uv publish --token ${{ secrets.PYPI_TOKEN }} |