forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from facebook/master
Merge master into branch
- Loading branch information
Showing
710 changed files
with
10,863 additions
and
1,720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,23 +23,23 @@ aliases: | |
- &deploy | ||
command: | | ||
# Deploy Jest website | ||
git config --global user.email "jest[email protected]" | ||
# Deploy Jest website using Docusaurus bot | ||
git config --global user.email "docusaurus[email protected]" | ||
git config --global user.name "Website Deployment Script" | ||
echo "machine github.com login jest-bot password $GITHUB_TOKEN" > ~/.netrc | ||
echo "machine github.com login docusaurus-bot password $DOCUSAURUS_PUBLISH_TOKEN" > ~/.netrc | ||
# install Docusaurus and generate file of English strings | ||
cd website && yarn && yarn run write-translations | ||
yarn && cd website && yarn run write-translations | ||
# crowdin install | ||
sudo apt-get update | ||
sudo apt-get install default-jre | ||
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 | ||
# translations upload/download | ||
yarn run crowdin-upload | ||
yarn run crowdin-download | ||
# build and publish website | ||
GIT_USER=jest-bot yarn run publish-gh-pages | ||
GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages | ||
version: 2 | ||
jobs: | ||
|
@@ -96,9 +96,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore-cache: *restore-cache | ||
- run: | | ||
cd website | ||
yarn --no-progress | ||
- run: yarn --no-progress | ||
- save-cache: *save-cache | ||
- deploy: *deploy | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.