Clean up docs publishing flow (#11043)

* Clean up publishing flow

* Update README

Co-authored-by: publish-docs.sh <maintainers@solana.com>
This commit is contained in:
Dan Albert
2020-07-14 07:56:14 -06:00
committed by GitHub
parent 14ac233d01
commit 303a4df6ef
7 changed files with 53 additions and 52 deletions

View File

@ -26,20 +26,9 @@ source ../ci/rust-version.sh
# Build from /src into /build
npm run build
# Deploy the /build content using vercel
if [[ -d .vercel ]]; then
rm -r .vercel
fi
./set-vercel-project-name.sh
# Publish only from merge commits and release tags
if [[ -n $CI ]]; then
if [[ -z $CI_PULL_REQUEST ]]; then
[[ -n $VERCEL_TOKEN ]] || {
echo "VERCEL_TOKEN is undefined. Needed for Vercel authentication."
exit 1
}
vercel deploy . --local-config=vercel.json --confirm --token "$VERCEL_TOKEN" --prod
./publish-docs.sh
fi
else
vercel deploy . --local-config=vercel.json
fi