Skip to content

Instantly share code, notes, and snippets.

View avibathula's full-sized avatar

Avi Bathula avibathula

View GitHub Profile
@avibathula
avibathula / hugo2Hostingsite.yml
Created February 8, 2024 20:39
GitHub Actions Workflow to build Hugo static site and deploy (using rsynch) over to your hosting site
# GitHub Actions Workflow for building and deploying a Hugo site to GitHub Pages. This script uses
#. GitHub Actions Secrets to set the following with sample values
#
# RUNNING_GITHUB_ACTIONS=true
# HOSTINGSITE_CONTENT_DESTINATION_FOLDER=~/domains/my-production-site/public_html/
# HOSTINGSITE_CONTENT_SOURCE_FOLDER=./public/
# HOSTINGSITE_DEPLOYMENT_GITHUBACTIONS_SSH_PVTKEY
# HOSTINGSITE_SSH_HOSTNAMEIP=145.116.87.110
# HOSTINGSITE_SSH_PORT=12345
# HOSTINGSITE_SSH_USERNAME=u411364491