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):
[INFO] DeployKey: true
[INFO] PublishBranch: gh-pages
[INFO] PublishDir: ./_site
[INFO] AllowEmptyCommit: false
[INFO] KeepFiles: false
[INFO] ForceOrphan: false
[INFO] EnableJekyll (DisableNoJekyll): false
[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
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?
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!