Warning: This only works if you enable Password authentication in Digital Ocean.
If you want to use Key authentication, most tutorials in Google already cover that.
In your repo, create .github/workflow/deploy.yml
containing this:
name: Deploy via SSH