Files
OpenPipe-llm/client-libs/python/publish.sh
arcticfly 43a22865fd Update python publishing process (#209)
* Update README

* Update package version

* Add publish script

* Close project menu after creating a project

* Update npm lib README

* Publish updated README to npm

* Record updated version number
2023-08-31 22:14:59 -07:00

12 lines
289 B
Bash

#!/bin/bash
set -e
# Check if PYPI_OPENPIPE_TOKEN is set
if [[ -z "${PYPI_OPENPIPE_TOKEN}" ]]; then
echo "Error: PYPI_OPENPIPE_TOKEN is not set."
exit 1
fi
# If the token is set, proceed with publishing
poetry publish --build --username=__token__ --password=$PYPI_OPENPIPE_TOKEN