openai/openai-python

Public

mirrored fromhttps://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.32.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.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
3name: Publish PyPI
4on:
5 workflow_dispatch:
6
7jobs:
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