question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support: Error deploying to the external repository

See original GitHub issue

Checklist

  • 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 name ACTIONS_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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dudarbohcommented, Dec 18, 2021

It works.

Copying private key’s -----BEGIN RSA PRIVATE KEY----- and -----END RSA PRIVATE KEY----- lines seems important…

Sorry for this newbie issue 😃

cheers

0reactions
github-actions[bot]commented, Dec 19, 2021

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>
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found