-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Description
🐛 Bug Report
The publish-gh-pages script doesn't run at a Windows command prompt, with or without USE_SSH=true. The script runs in Git Bash. Why won't it run at a Windows command prompt?
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
At the Windows command prompt:
cdto the website directory of a Docusaurus repository.- Type
GIT_USER=githubusername CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pagesreplacinggithubusernameand press Enter. (It fails on my system.) - Type
GIT_USER=githubusername CURRENT_BRANCH=master npm run publish-gh-pagesreplacinggithubusernameand press Enter. (It fails on my system.)
In Git Bash:
cdto the website directory of a Docusaurus repository.- Type
GIT_USER=githubusername CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pagesreplacinggithubusernameand press Enter. (It fails on my system.) - Type
GIT_USER=githubusername CURRENT_BRANCH=master npm run publish-gh-pagesreplacinggithubusernameand press Enter. (It runs on my system.)
Expected behavior
Files in the build directory are copied to GitHub.
Actual Behavior
Files aren't copied to GitHub. An error message says, 'GIT_USER' is not recognized as an internal or external command, operable program or batch file. See the screen images.
SSH and HTTPS fail at the Windows command prompt:
SSH fails in Git Bash:
HTTPS runs in Git Bash:
Reproducible Demo
Test publish-gh-pages with any repository. My repository was from the Docusaurus tutorial. I copied the files in my local repository to this branch, https://github.com/italicize/doc-tutorial/tree/source.



