Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
name: publish
runs-on: ubuntu-latest
environment: publish
permissions:
contents: read
id-token: write
Comment thread
adityasingh2400 marked this conversation as resolved.

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -19,8 +22,10 @@ jobs:
version: '0.44.0'
enable-cache: true

- name: Publish to PyPI
- name: Build distributions
run: |
bash ./bin/publish-pypi
env:
PYPI_TOKEN: ${{ secrets.OPENAI_PYPI_TOKEN || secrets.PYPI_TOKEN }}
mkdir -p dist
rye build --clean

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1