openai/openai-python
Publicmirrored fromhttps://github.com/openai/openai-pythonAvailable
.github/workflows/publish-pypi.yml
26lines · modecode
| 1 | # workflow for re-running publishing to PyPI in case it fails for some reason |
| 2 | # you can run this workflow by navigating to https://www.github.com/openai/openai-python/actions/workflows/publish-pypi.yml |
| 3 | name: Publish PyPI |
| 4 | on: |
| 5 | workflow_dispatch: |
| 6 | |
| 7 | jobs: |
| 8 | publish: |
| 9 | name: publish |
| 10 | runs-on: ubuntu-latest |
| 11 | environment: publish |
| 12 | |
| 13 | steps: |
| 14 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
| 15 | |
| 16 | - name: Set up Rye |
| 17 | uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8 |
| 18 | with: |
| 19 | version: '0.44.0' |
| 20 | enable-cache: true |
| 21 | |
| 22 | - name: Publish to PyPI |
| 23 | run: | |
| 24 | bash ./bin/publish-pypi |
| 25 | env: |
| 26 | PYPI_TOKEN: ${{ secrets.OPENAI_PYPI_TOKEN || secrets.PYPI_TOKEN }} |
| 27 | |