I’m having trouble with the final deploy, and have followed @peaceiris instructions for setting up a deploy key and secret and have uploaded the Github action, as documented in the HUGO docs (Host on GitHub | Hugo).
However, I’m getting an error on the deployment, which is as follows:
/usr/bin/git push origin gh-pages
fatal: unable to access 'https://x-access-token:***@github.com/jonathanthomas83/guitar.git/': URL using bad/illegal format or missing URL
Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
The only thing I can think of is that I’m using Two-Factor Authentication and perhaps this is why the “***” is happening? Either way, I am really struggling to understand how to fix this and would greatly appreciate some help Thank you for your time!
Thank you @peaceiris, I’ll spare you the details. But I’ve spent the last couple of days troubleshooting and trying various things. Turns out that upon returning to the original Deploy Key method, I wasn’t copying and pasting in the common way, but rather in a way to prevent line breaks. Solved and thank you for your time. Your answer helped!