openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
a50ff0a19084306a09012ff85f730ea2c129eef9

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/create-releases.yml

37lines · modeblame

bff8da95stainless-app[bot]1 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:
58184ad5Drew Hintz3 months ago17- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
bff8da95stainless-app[bot]1 years ago18
daaf92f3stainless-app[bot]2 months ago19- uses: stainless-api/trigger-release-please@bb6677c5a04578eec1ccfd9e1913b5b78ed64c61 # v1.4.0
bff8da95stainless-app[bot]1 years ago20id: release
21with:
22repo: ${{ github.event.repository.full_name }}
23stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
24
e507a4ebstainless-app[bot]3 months ago25- name: Set up Rye
bff8da95stainless-app[bot]1 years ago26if: ${{ steps.release.outputs.releases_created }}
e507a4ebstainless-app[bot]3 months ago27uses: eifinger/setup-rye@c694239a43768373e87d0103d7f547027a23f3c8
28with:
29version: '0.44.0'
30enable-cache: true
bff8da95stainless-app[bot]1 years ago31
32- name: Publish to PyPI
33if: ${{ steps.release.outputs.releases_created }}
34run: |
35bash ./bin/publish-pypi
36env:
37PYPI_TOKEN: ${{ secrets.OPENAI_PYPI_TOKEN || secrets.PYPI_TOKEN }}