📝 docs: update sync_docs.sh script (#2532)

* 📝 docs: update sync_docs.sh script

* 📝 docs: update sync_docs.sh script
pull/2533/head
M. Efe Çetin 2023-07-06 17:14:57 +03:00 committed by GitHub
parent 453ccadadd
commit 70aec2b4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ if [[ $EVENT == "push" ]]; then
if [[ $log_output != "" ]]; then
git clone https://${TOKEN}@${REPO_URL} fiber-docs
cp -a docs/* fiber-docs/docs
cp -a docs/* fiber-docs/docs/core
# Push changes for next docs
cd fiber-docs/ || return
git add .
@ -31,8 +31,8 @@ elif [[ $EVENT == "release" ]]; then
# Push changes for stable docs
git clone https://${TOKEN}@${REPO_URL} fiber-docs
cd fiber-docs/ || return
cp -a docs/* versioned_docs/version-${MAJOR_VERSION}.x
cp -a docs/core/* versioned_docs/version-${MAJOR_VERSION}.x
git add .
git commit -m "Sync docs for ${latest_tag} release"
git push https://${TOKEN}@${REPO_URL}
fi
fi