Skip to content
Discussion options

You must be logged in to vote

Create a bare repo on the DreamHost server
and push it to it
have a post-receive hook doing the git restore in the target folder (on the same server) where the actual site is deployed
See (https://stackoverflow.com/a/68246767/6309)"

What remains for your GitHub Action is, as described in (https://zellwk.com/blog/github-actions-deploy/), to use a dedicated SSH key, whose private key is registered in GitHub secrets

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahmedmahmoud321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback Share your thoughts and suggestions on GitHub features and improvements
2 participants