mirror of
https://github.com/langchain-ai/langsmith-java.git
synced 2026-07-25 21:25:45 -04:00
334fe4ef56
Stainless-Generated-From: b3f3c130ed43c672c54694b4121e90305c6c58c7
38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
errors=()
|
|
|
|
if [ -z "${RELEASE_PLEASE_TOKEN}" ]; then
|
|
errors+=("The RELEASE_PLEASE_TOKEN secret has not been set. Create a fine-grained GitHub PAT and add it as a repository secret.")
|
|
fi
|
|
|
|
if [ -z "${SONATYPE_USERNAME}" ]; then
|
|
errors+=("The SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
|
|
fi
|
|
|
|
if [ -z "${SONATYPE_PASSWORD}" ]; then
|
|
errors+=("The SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
|
|
fi
|
|
|
|
if [ -z "${GPG_SIGNING_KEY}" ]; then
|
|
errors+=("The GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
|
|
fi
|
|
|
|
if [ -z "${GPG_SIGNING_PASSWORD}" ]; then
|
|
errors+=("The GPG_SIGNING_PASSWORD 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!"
|