diff --git a/docs/en/next/publishing.html b/docs/en/next/publishing.html index 79956f91d6..47293cd9d4 100644 --- a/docs/en/next/publishing.html +++ b/docs/en/next/publishing.html @@ -158,6 +158,30 @@ - run: echo "Skipping tests on gh-pages branch"
Save this file as config.yml and place it in a .circleci folder inside your website/static folder.
More options > Setting > Environment Variables section of your repository.GH_TOKEN with your newly generated token as its value, then GH_EMAIL (your email address) and GH_NAME (your GitHub username)..travis.yml on the root of your repository with below text.# .travis.yml
+language: node_js
+node_js:
+ - '8'
+branches:
+ only:
+ - master
+cache:
+ yarn: true
+script:
+ - git config --global user.name "${GH_NAME}"
+ - git config --global user.email "${GH_EMAIL}"
+ - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
+ - cd website && yarn install && GIT_USER="${GH_NAME}" yarn run publish-gh-pages
+
+Now, whenever a new commit lands in master, Travis CI will run your suite of tests and, if everything passes, your website will be deployed via the publish-gh-pages script.
Steps to configure your Docusaurus-powered site on Netlify.
Click Deploy site
You can also configure Netlify to rebuild on every commit to your repo, or only master branch commits.