Skip to content

Commit

Permalink
Add translations to Circle config (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelMarcey authored Apr 12, 2018
1 parent f253307 commit 1c94060
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c94060

Please sign in to comment.