#!/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