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

docs: update windows deploy command #2281

Merged

Conversation

OndrejNepozitek
Copy link
Contributor

Motivation

In #2258, it is described that the publish script fails on Windows. The problem is caused by a whiteline that is appended to the GIT_USER env variable on windows when you run cmd /C "set GIT_USER=<GIT_USER> && set CURRENT_BRANCH=master && set USE_SSH=true && yarn run publish-gh-pages". The same issue is also in v2, where the command is cmd /C "set GIT_USER=<GITHUB_USERNAME> && yarn deploy".

We can fix the problem by using delayed expansion (surrounding GIT_USER=<GIT_USER> with quotation marks).

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Tested locally on Windows by running the deploy command on both v1 and v2.

…ude a trailing whitespace after GIT_USER env variable
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Feb 11, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit b36b253

https://deploy-preview-2281--docusaurus-2.netlify.com

@yangshun yangshun added the pr: documentation This PR works on the website or other text documents in the repo. label Feb 16, 2020
Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@yangshun yangshun merged commit 8d804c6 into facebook:master Feb 16, 2020
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: documentation This PR works on the website or other text documents in the repo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants