Add publish script

This commit is contained in:
David Corbitt
2023-08-31 18:49:03 -07:00
parent cb73598148
commit fa16dd61dc

View File

@@ -0,0 +1,11 @@
#!/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