Personal home page for JMA, driven by Hugo CMS
Published at https://jmallen.net, via GitHub pages
brew install hugo- Build the static pages
Run from the root of the repo:
hugo --minify --loglLevel info --destination public/- Validate the site works / displays as expected
-
Tag a commit on the main branch
-
Check Github Actions page for results
-
Fix whatever broke and try again 🤷♂️️
- Build the static pages
Run from the root of the repo:
hugo --minify --loglLevel info --destination public/- Validate Actions
env_file contains the 1Password "secret link" to the AWS Private Access Key and AWS Secret Access Key vault items. We can inject those values into the environment for deployment:
First, validate the actions to be taken, using the --dryRun flag:
op run --env-file env_file -- hugo deploy --confirm --dryRun --target production- Deploy
op run --env-file env_file -- hugo deploy --confirm --target productionBy default, the deployment will invalidate the Cloudfront distro cache. Add the flag --invalidateCDN=false to the deploy command above to avoid that, if required.