# Github Action for SSH Deployment

**URL:** <https://discourse.gohugo.io/t/github-action-for-ssh-deployment/32180>\
**Category:** tips & tricks\
**Created:** [April 5, 2021, 7:22pm UTC](https://discourse.gohugo.io/t/github-action-for-ssh-deployment/32180 "2021-04-05T19:22:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![errorbydefault](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/errorbydefault/32/13934_2.png) [@errorbydefault](https://discourse.gohugo.io/u/errorbydefault)\
**Post date:** [April 5, 2021, 7:22pm UTC](https://discourse.gohugo.io/t/github-action-for-ssh-deployment/32180/1 "2021-04-05T19:22:17Z")

</div>

Hey,

I found a lot of instructions for deploying from Github to GH pages but could not find anything regarding deploying to a self-hosted instance. Here is my try on a script for that. Maybe some version could be added to the documentation? Especially when using hugo with something like [forestry.io](http://forestry.io) this could be really helpful.

> <https://github.com/ungeschneuer/hugo-gh-actions-server/blob/main/deploy.yaml>
