Skip to content

Commit

Permalink
feat: make it runnable...lol
Browse files Browse the repository at this point in the history
  • Loading branch information
diohabara committed Jun 23, 2024
1 parent b1d0a38 commit 8c9f53d
Show file tree
Hide file tree
Showing 37 changed files with 373 additions and 969 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
name: Python package
# workflow for re-running publishing to PyPI in case it fails for some reason
# you can run this workflow by navigating to https://www.github.com/openai/openai-python/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
build:
publish:
name: publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
python_version: "3.10"
ignore_dev_requirements: "yes"
pypi_token: ${{ secrets.PYPI_TOKEN }}
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_INSTALL_OPTION: "--yes"

- name: Publish to PyPI
run: |
bash ./bin/publish-pypi
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.9
3.12.3
Loading

0 comments on commit 8c9f53d

Please sign in to comment.