Github Pages deployment using personal keys in public repo

I have recently migrated from hugo to zola and setup a custom theme @ https://github.com/xypnox/blag. The problem I am facing is that both the auto-deployment methods for github-pages require me to put the access token in a public file. Which is then detected by github and is automatically invalidated.

Are there any other ways to setup auto-deployment to github pages which doesn’t involve committing the access token?

I don’t really how deploys work on GH but you can set a secret on your repo and use that in the action I guess?

in zola_deploy_action you’ll find action example with config&secrets https://github.com/shalzz/zola-deploy-action

1 Like