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

GITHUB PAGES - Deploy Issue #3887

Closed
ashu231083 opened this issue Dec 5, 2020 · 5 comments
Closed

GITHUB PAGES - Deploy Issue #3887

ashu231083 opened this issue Dec 5, 2020 · 5 comments
Labels
closed: question This issue is a user error/misunderstanding.

Comments

@ashu231083
Copy link

🐛 Bug Report

(A clear and concise description of what the bug is)

Have you read the [Contributing Guidelines on issues]fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: Error: git clone failed
at runDeploy (/home/runner/work/xxxxxx/xxxxxx/xxxxxx/node_modules/@docusaurus/core/lib/commands/deploy.js:86:19)
Error: Process completed with exit code 1.

To Reproduce

@ashu231083 ashu231083 added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Dec 5, 2020
@ashu231083
Copy link
Author

ashu231083 commented Dec 5, 2020

I have fixed issue Deploy in local machine to GIT PAGES.
Change manually deploy.js file and Deploy with below command.
GIT_USER=<GITHUB_USERNAME> yarn deploy

Change in deploy.js
OLD
const nonSshRemoteBranch = https://${gitCredentials}@${githubHost}/${organizationName}/${projectName}.git;
NEW
const nonSshRemoteBranch = https://${githubHost}/${organizationName}/${projectName}.git;

BUT how to fix in GitHub Action Deploy?

@ashu231083 ashu231083 changed the title Deploy Issue GITHUB PAGES - Deploy Issue Dec 5, 2020
@slorber
Copy link
Collaborator

slorber commented Dec 7, 2020

Hi,

You can either submit a PR with your change, or use patch-package to temporarily patch your issue with Docusaurus in your own repo.

Not sure yet, but this code works for many users, so I think it's strange if it fails only for you.

Have you actually replaced the github username with your real one?

You are not supposed to run GIT_USER=<GITHUB_USERNAME> yarn deploy, but run GIT_USER=ashu231083 yarn deploy instead.

@slorber
Copy link
Collaborator

slorber commented Dec 7, 2020

Note: I added more logs to the deploy command recently. It's not released yet but if you use docusaurus@canary you should get the new code running locally

@OverloadedOrama
Copy link

OverloadedOrama commented Dec 11, 2020

I am receiving the same error in my repository. I followed the steps from the docs for the SSH key. Is this a bug in Docusaurus or am I doing something wrong?

EDIT: I didn't figure out the solution but I set up an alternative workflow which seems to be working.

@lex111
Copy link
Contributor

lex111 commented Mar 1, 2021

@ashu231083 @OverloadedOrama apparently this was fixed in #4263, so I'm going to close this issue. But feel free to write about deployment issues if they arise.

@lex111 lex111 closed this as completed Mar 1, 2021
@Josh-Cena Josh-Cena added closed: question This issue is a user error/misunderstanding. and removed bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: question This issue is a user error/misunderstanding.
Projects
None yet
Development

No branches or pull requests

5 participants