Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(v2): allow deploy without building website #2770

Merged
merged 2 commits into from
May 27, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented May 18, 2020

Motivation

Resolve #2723.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

  1. Deploy with building website:
GIT_USER=%user% USE_SSH=true yarn deploy
  1. Deploy without building website (before this action, you first need to run the command to build the site (yarn build), otherwise there will be an error):
GIT_USER=%user% USE_SSH=true yarn deploy --skip-build

Both scenarios should lead to the deployment of the website.

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111 lex111 added the pr: new feature This PR adds a new API or behavior. label May 18, 2020
@lex111 lex111 requested a review from yangshun as a code owner May 18, 2020 11:26
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label May 18, 2020
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented May 18, 2020

Deploy preview for docusaurus-2 ready!

Built with commit 92c20c4

https://deploy-preview-2770--docusaurus-2.netlify.app

@lex111
Copy link
Contributor Author

lex111 commented May 25, 2020

cc @yangshun

@@ -110,3 +110,4 @@ Deploys your site with [GitHub Pages](https://pages.github.com/). Check out the
| Name | Default | Description |
| --- | --- | --- |
| `--out-dir` | `build` | The full path for the new output directory, relative to the current workspace. |
| `--skip-build` | `false` | Deploy website without new its building. This may be useful when using custom deploy script. |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without new its building looks like a typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@yangshun yangshun added this to the v2.0.0-alpha.56 milestone May 25, 2020
@yangshun yangshun merged commit 082c621 into master May 27, 2020
@yangshun yangshun deleted the lex111/deploy-without-build branch May 27, 2020 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: new feature This PR adds a new API or behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify input build for deployment
5 participants