mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 03:12:35 +02:00
Update CircleCI info
Show how you can make it so CircleCI only runs when a commit is directly made to the `master` branch.
This commit is contained in:
parent
e798618ed2
commit
f41b207333
1 changed files with 10 additions and 0 deletions
|
@ -86,6 +86,15 @@ If you haven't done so already, you can [setup CircleCI](https://circleci.com/si
|
||||||
1. Copy the text below into `.circleci/config.yml`.
|
1. Copy the text below into `.circleci/config.yml`.
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
# If you only one circle to run on direct commits to master, you can uncomment this out
|
||||||
|
# and uncomment the filters: *filter-only-master down below too
|
||||||
|
#
|
||||||
|
# aliases:
|
||||||
|
# - &filter-only-master
|
||||||
|
# branches:
|
||||||
|
# only:
|
||||||
|
# - master
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
deploy-website:
|
deploy-website:
|
||||||
|
@ -108,6 +117,7 @@ workflows:
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
jobs:
|
jobs:
|
||||||
- deploy-website
|
- deploy-website
|
||||||
|
# filters: *filter-only-master
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure to replace all `<....>` in the `command:` sequence with appropriate values. For `<GIT_USER>`, it should be a GitHub account that has access to push documentation to your GitHub repo. Many times `<GIT_USER>` and `<GITHUB_USERNAME>` will be the same.
|
Make sure to replace all `<....>` in the `command:` sequence with appropriate values. For `<GIT_USER>`, it should be a GitHub account that has access to push documentation to your GitHub repo. Many times `<GIT_USER>` and `<GITHUB_USERNAME>` will be the same.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue