Use this repo as template.
Set deploy keys in the new repo.
generate a new SSH key
ssh-keygen -t ed25519 -C "" -P "" -f x
copy public to repo deploy keys and (important!) allow write access (the name does not matter, use "GitHub Actions" for example) https://github.com/andreif/example/settings/keys/new
cat x.pub | pbcopy
copy private to repo secrets and (important!) call it DEPLOY_KEY
https://github.com/andreif/example/settings/secrets/actions/new
cat x | pbcopy
remove the key from local machine
rm x x.pub
Restart the failed workflow run to deploy gh-pages
branch
https://github.com/andreif/example/actions/workflows/deploy.yml