support: Error deploying to the external repository
See original GitHub issueChecklist
- I am using the latest version of this action.
- I have read the latest README and followed the instructions.
- I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.
Describe your question
Hi,
I am trying to deploy doxygen documentation generated in repository A to my github pages repository B.
I have tried to follow the instructions provided in the README, which are:
- generate pair of private/public rsa keys
- add private key to the repository A (the one with Actions) to the
secrets
with a nameACTIONS_DEPLOY_KEY
- add public key to the deploy keys of repository B (pages)
- add the action step as:
- name: Deploy website
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: dudarboh/dudarboh.github.io
publish_branch: gh-pages
publish_dir: ./doc/doxygen_api/html
and I stumble on the error:
Error: Action failed with "The process '/usr/bin/ssh-add' failed with exit code 1"
Could you give me a hint if I am doing something wrong?
cheers
Relevant links
Public repository: https://github.com/dudarboh/LCIO/tree/test-doc
External repository for website: https://github.com/dudarboh/dudarboh.github.io
YAML config: https://github.com/dudarboh/LCIO/blob/test-doc/.github/workflows/docs.yml
YAML workflow: https://github.com/dudarboh/LCIO/runs/4563029468?check_suite_focus=true
Relevant log output
Run peaceiris/actions-gh-pages@v3
[INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
Dump inputs
Setup auth token
[INFO] setup SSH deploy key
/usr/bin/chmod 700 /home/runner/.ssh
[INFO] wrote /home/runner/.ssh/known_hosts
/usr/bin/chmod 600 /home/runner/.ssh/known_hosts
[INFO] wrote /home/runner/.ssh/github
/usr/bin/chmod 600 /home/runner/.ssh/github
[INFO] wrote /home/runner/.ssh/config
/usr/bin/chmod 600 /home/runner/.ssh/config
/usr/bin/ssh-add /home/runner/.ssh/github
Error loading key "/home/runner/.ssh/github": invalid format
Error: Action failed with "The process '/usr/bin/ssh-add' failed with exit code 1"
Additional context.
Maybe you will have any immediate idea what could cause this?
Thank you!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
az webapp deployment source config command fails ... - GitHub
az webapp deployment source config command fails when trying to add an external repository using a url that isn't one of certain hostnames...
Read more >External repository dependency fails k8s deployment - GitLab
We depend on bitnami repository which appears to sometimes fail. We should work with Distribution to find a way to remove this dependency....
Read more >Troubleshooting Artifact Deployment Failures
The most common reason is that you are trying to re-deploy an artifact into a repository which does not allow redeployment.
Read more >How to deploy a git repository - Hostinger Help Center
Deploying and managing git repositories using Hostinger's hPanel. ... Webhooks can be used to update an external issue tracker, update a backup mirror, ......
Read more >Troubleshooting build errors | Cloud Build Documentation
The error above indicates that the Cloud Build service account is missing the cloudbuild.builds.create IAM permission, which is required for the service account ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works.
Copying private key’s
-----BEGIN RSA PRIVATE KEY-----
and-----END RSA PRIVATE KEY-----
lines seems important…Sorry for this newbie issue 😃
cheers
This issue has been LOCKED because of it being resolved!
The issue has been fixed and is therefore considered resolved. If you still encounter this or it has changed, open a new issue instead of responding to solved ones.
<div align="right">Log | Bot Usage</div>