mirror of https://github.com/gofiber/fiber.git
📝 docs: update sync_docs.sh script (#2532)
* 📝 docs: update sync_docs.sh script * 📝 docs: update sync_docs.sh scriptpull/2533/head
parent
453ccadadd
commit
70aec2b4ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue