Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Agave docs #2887

Merged
merged 5 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ source ../ci/rust-version.sh
# Build from /src into /build
npm run build
echo $?

# Publish only from merge commits and beta release tags
if [[ -n $CI ]]; then
if [[ -z $CI_PULL_REQUEST ]]; then
if [[ -n $CI_TAG ]] && [[ $CI_TAG != $BETA_CHANNEL* ]]; then
echo "not a beta tag"
exit 0
fi
./publish-docs.sh
fi
fi
8 changes: 4 additions & 4 deletions docs/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ fi
CONFIG_FILE=vercel.json

if [[ -n $CI_TAG ]]; then
PROJECT_NAME=docs-solana-com
PROJECT_NAME=docs-anza-xyz
else
eval "$(../ci/channel-info.sh)"
case $CHANNEL in
edge)
PROJECT_NAME=edge-docs-solana-com
PROJECT_NAME=edge-docs-anza-xyz
;;
beta)
PROJECT_NAME=beta-docs-solana-com
PROJECT_NAME=beta-docs-anza-xyz
;;
*)
PROJECT_NAME=docs
Expand Down Expand Up @@ -151,4 +151,4 @@ EOF
echo "VERCEL_TOKEN is undefined. Needed for Vercel authentication."
exit 1
}
vercel deploy . --local-config="$CONFIG_FILE" --confirm --token "$VERCEL_TOKEN" --prod
vercel deploy . --local-config="$CONFIG_FILE" --yes --token "$VERCEL_TOKEN" --prod