feat(api): update via SDK Studio

This commit is contained in:
stainless-app[bot] 2025-06-27 14:25:51 +00:00
parent 604017133e
commit ff05a4adf0
130 changed files with 17166 additions and 1 deletions

View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
errors=()
if [ -z "${STAINLESS_API_KEY}" ]; then
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
fi
if [ -z "${PYPI_TOKEN}" ]; then
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
fi
lenErrors=${#errors[@]}
if [[ lenErrors -gt 0 ]]; then
echo -e "Found the following errors in the release environment:\n"
for error in "${errors[@]}"; do
echo -e "- $error\n"
done
exit 1
fi
echo "The environment is ready to push releases!"

6
bin/publish-pypi Normal file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -eux
mkdir -p dist
rye build --clean
rye publish --yes --token=$PYPI_TOKEN