openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.30.4

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/create-releases.yml

39lines · modeblame

63222f61Stainless Bot2 years ago1name: Create releases
2on:
3schedule:
4- cron: '0 5 * * *' # every day at 5am UTC
5push:
6branches:
7- main
8
9jobs:
10release:
11name: release
12if: github.ref == 'refs/heads/main' && github.repository == 'openai/openai-python'
13runs-on: ubuntu-latest
14environment: publish
15
16steps:
290e7adaStainless Bot2 years ago17- uses: actions/checkout@v4
63222f61Stainless Bot2 years ago18
19- uses: stainless-api/trigger-release-please@v1
20id: release
21with:
22repo: ${{ github.event.repository.full_name }}
23stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
24
25- name: Install Rye
26if: ${{ steps.release.outputs.releases_created }}
27run: |
001965beStainless Bot2 years ago28curl -sSf https://rye.astral.sh/get | bash
63222f61Stainless Bot2 years ago29echo "$HOME/.rye/shims" >> $GITHUB_PATH
30env:
31RYE_VERSION: 0.24.0
32RYE_INSTALL_OPTION: "--yes"
33
34- name: Publish to PyPI
35if: ${{ steps.release.outputs.releases_created }}
36run: |
37bash ./bin/publish-pypi
38env:
39PYPI_TOKEN: ${{ secrets.OPENAI_PYPI_TOKEN || secrets.PYPI_TOKEN }}