Sorry about this, but I can’t quite seem to get this working. Following the initial setup directions I got the secret, the SSH_DEPLOY_KEY, public key, etc in there with how it wants. However after pushing the PR it breaks on Deploy (GitHub Trace Below):
Run peaceiris/actions-gh-pages@v3
[INFO] DeployKey: true
[INFO] PublishBranch: gh-pages
[INFO] PublishDir: ./_site
[INFO] ExternalRepository:
[INFO] AllowEmptyCommit: false
[INFO] KeepFiles: false
[INFO] ForceOrphan: false
[INFO] UserName:
[INFO] UserEmail:
[INFO] CommitMessage:
[INFO] TagName:
[INFO] TagMessage:
[INFO] EnableJekyll (DisableNoJekyll): false
[INFO] CNAME:
[INFO] setup SSH deploy key
/bin/chmod 700 /home/runner/.ssh
[INFO] wrote /home/runner/.ssh/known_hosts
/bin/chmod 600 /home/runner/.ssh/known_hosts
[INFO] wrote /home/runner/.ssh/github
/bin/chmod 600 /home/runner/.ssh/github
[INFO] wrote /home/runner/.ssh/config
/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"
How should I try to go about fixing this?
Edit: just saw the format issues. I went through and copy/pasted just the SSH keys themselves (not the surrounding “ssh starts here” stuff). Should I have not?
That actually solved the issue right away! Thank you! (Perhaps it should be included in the directions mabye? Just a one liner include the “—” portion too)
Small suggestion - I would add [solved] in tag-like format at the beginning, like I have seen people already adopt for [fastpages]. Makes it easier to know this is metadata, rather than part of the title.
On a similar note, I would make sure all the [fastpages] tags are in the same format (some are [Fastpages]). In the future, you may want to add some functionality that uses these constructs.
This allows you to commit to a branch as a user other than GitHub Actions, which is the only way to trigger GitHub to deploy your GitHub pages site. But if you are curious, you can try removing it and see what happens!