Add translations to Circle config (#549)

This commit is contained in:
Joel Marcey 2018-04-12 08:34:27 -07:00 committed by GitHub
parent f253307f72
commit 1c94060447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,19 @@ jobs:
command: |
if [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
echo "Deploying website..."
cd website && GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages
# install Docusaurus and generate file of English strings
yarn && cd website && yarn run write-translations
# install Crowdin
sudo apt-get update
sudo apt-get install default-jre rsync
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
sudo dpkg -i crowdin.deb
sleep 5
# upload translation strings and download translations
yarn run crowdin-upload
yarn run crowdin-download
# publish
GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages
else
echo "Skipping deploy."
fi