Redesigning, modernizing, and Optimizing selfhelphawaii.com using hugo.
🏠 Production Site - selfhelphawaii.com
✨ Staging Site - jasoncavinder.github.io/SHH_site_refresh_2023/
-
CreateUpdate README.md -
CreateUpdate LICENSE.md - Finish Building the new site
- Setup GitHub Pages for staging (preview) site
- Setup GitHub.dev for content updates by client
- Setup GitHub Actions for publishing to staging/production
- Relax... you're done!
Requirements:
- HUGO (gohugo.io)
- GO (go.dev)
- git (git-scm.com)
cd /path/to/local/files
hugo server
Staging builds - Deploy to Github Pages for preview
Method 1 - from your computer
NOTES - How I setup gh-pages branch
git checkout --orphan gh-pages git reset --hard git commit --allow-empty -m 'Initialize GitHub Pages' git checkout main git worktree add public/staging gh-pages cd public/staging git push --set-upstream origin gh-pagesThis was adapted from riivanov's [comment](<(https://gist.github.com/cobyism/4730490?permalink_comment_id=4266141#gistcomment-4266141)>) at Deploying a subfolder to GitHub Pages
hugo -e staging
# Workaround for '.git' deleted by --cleanDestinationDir
# See https://github.com/gohugoio/hugo/pull/6261
git worktree repair
cd public/staging
git add .
git commit -m 'v#.#.#' # increment 3rd number
git push
Method 2 - from GitHub.dev
- TODO - Setup GitHub action for HUGO build and deploy to gh-pages
Deploy to selfhelphawaii.com
Method 1 - from your computer
# Tentative. Not yet configured.
hugo -e production
# Workaround for '.git' deleted by --cleanDestinationDir
# See https://github.com/gohugoio/hugo/pull/6261
git worktree repair
cd public/production
git add .
git commit -m 'v#.#.#' # increment 2nd/3rd num appropriately
git push
Method 2 - from GitHub.dev
- TODO - Create GitHub Action for HUGO build and deploy to production site.
👤 Jason Cavinder
- Github: @jasoncavinder
- LinkedIn: @jason-cavinder
Give a ⭐️ if this project helped you!
This README was initially generated with ❤️ by readme-md-generator