openai/chatkit-python
Publicmirrored from https://github.com/openai/chatkit-pythonAvailable
.github/workflows/release.yml
36lines · modeblame
f688d870victor-openai8 months ago | 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 | |
ba7ff344Jiwon Kim8 months ago | 18 | url: https://pypi.org/p/openai-chatkit |
f688d870victor-openai8 months ago | 19 | runs-on: ubuntu-latest |
| 20 | steps: | |
| 21 | - name: Checkout repository | |
778828a4Drew Hintz3 months ago | 22 | uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
f688d870victor-openai8 months ago | 23 | |
| 24 | - name: Setup uv | |
778828a4Drew Hintz3 months ago | 25 | uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5 |
f688d870victor-openai8 months ago | 26 | with: |
| 27 | enable-cache: true | |
| 28 | | |
| 29 | - name: Install dependencies | |
| 30 | run: make install | |
| 31 | | |
| 32 | - name: Build package | |
| 33 | run: make build | |
ba7ff344Jiwon Kim8 months ago | 34 | |
f688d870victor-openai8 months ago | 35 | - name: Publish to PyPI |
778828a4Drew Hintz3 months ago | 36 | uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1 |