mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 01:47:17 +02:00
feat(v2): allow targeting deployment branch with environment variable (#2396)
This commit is contained in:
parent
8152b47bba
commit
51995fa237
2 changed files with 4 additions and 1 deletions
|
@ -86,6 +86,7 @@ There are two more optional parameters that are set as environment variables:
|
|||
| Name | Description |
|
||||
| --- | --- |
|
||||
| `USE_SSH` | Set to `true` to use SSH instead of the default HTTPS for the connection to the GitHub repo. |
|
||||
| `DEPLOYMENT_BRANCH` | The branch that the website will be deployed to, defaults to `gh-pages` for normal repos and `master` for repository names ending in `github.io`. |
|
||||
| `CURRENT_BRANCH` | The branch that contains the latest docs changes that will be deployed. Usually, the branch will be `master`, but it could be any branch (default or otherwise) except for `gh-pages`. If nothing is set for this variable, then the current branch will be used. |
|
||||
|
||||
### Deploy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue