Adds DALL-E note to Azure OpenAI in v1 SDK (#766) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create releases | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: release | |
if: github.ref == 'refs/heads/main' && github.repository == 'openai/openai-python' | |
runs-on: ubuntu-latest | |
environment: publish | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: stainless-api/trigger-release-please@v1 | |
id: release | |
with: | |
repo: ${{ github.event.repository.full_name }} | |
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} | |
- name: Install Rye | |
if: ${{ steps.release.outputs.releases_created }} | |
run: | | |
curl -sSf https://rye-up.com/get | bash | |
echo "$HOME/.rye/shims" >> $GITHUB_PATH | |
env: | |
RYE_VERSION: 0.15.2 | |
RYE_INSTALL_OPTION: "--yes" | |
- name: Publish to PyPI | |
if: ${{ steps.release.outputs.releases_created }} | |
run: | | |
bash ./bin/publish-pypi | |
env: | |
PYPI_TOKEN: ${{ secrets.OPENAI_PYPI_TOKEN || secrets.PYPI_TOKEN }} |