# Github Pages deployment using personal keys in public repo

**URL:** <https://zola.discourse.group/t/github-pages-deployment-using-personal-keys-in-public-repo/618>\
**Category:** Support\
**Created:** [October 1, 2020, 4:58am UTC](https://zola.discourse.group/t/github-pages-deployment-using-personal-keys-in-public-repo/618 "2020-10-01T04:58:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xypnox](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/xypnox/32/325_2.png) [@xypnox](https://zola.discourse.group/u/xypnox)\
**Post date:** [October 1, 2020, 4:58am UTC](https://zola.discourse.group/t/github-pages-deployment-using-personal-keys-in-public-repo/618/1 "2020-10-01T04:58:27Z")

</div>

I have recently migrated from hugo to zola and setup a custom theme @ [https://github.com/xypnox/blag](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?

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [October 1, 2020, 9:41am UTC](https://zola.discourse.group/t/github-pages-deployment-using-personal-keys-in-public-repo/618/2 "2020-10-01T09:41:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Roman](https://zola.discourse.group/u/Roman)\
**Post date:** [October 1, 2020, 10:29am UTC](https://zola.discourse.group/t/github-pages-deployment-using-personal-keys-in-public-repo/618/3 "2020-10-01T10:29:59Z")

</div>

in zola\_deploy\_action you’ll find action example with config&secrets [https://github.com/shalzz/zola-deploy-action](https://github.com/shalzz/zola-deploy-action)
