openai/chatkit-python
Publicmirrored fromhttps://github.com/openai/chatkit-pythonAvailable
.github/workflows/release.yml
36lines · modecode
| 1 | name: Release PyPI |
| 2 | |
| 3 | on: |
| 4 | release: |
| 5 | types: |
| 6 | - published |
| 7 | workflow_dispatch: |
| 8 | |
| 9 | permissions: |
| 10 | contents: read |
| 11 | id-token: write |
| 12 | |
| 13 | jobs: |
| 14 | release: |
| 15 | name: Release PyPI |
| 16 | environment: |
| 17 | name: pypi |
| 18 | url: https://pypi.org/p/openai-chatkit |
| 19 | runs-on: ubuntu-latest |
| 20 | steps: |
| 21 | - name: Checkout repository |
| 22 | uses: actions/checkout@v6 |
| 23 | |
| 24 | - name: Setup uv |
| 25 | uses: astral-sh/setup-uv@v5 |
| 26 | with: |
| 27 | enable-cache: true |
| 28 | |
| 29 | - name: Install dependencies |
| 30 | run: make install |
| 31 | |
| 32 | - name: Build package |
| 33 | run: make build |
| 34 | |
| 35 | - name: Publish to PyPI |
| 36 | uses: pypa/gh-action-pypi-publish@release/v1 |
| 37 | |