https://www.cassidynelemans.com is a static site generated by Hugo that is hosted in an S3 bucket and served by a Cloudfront distribution.
- Install hugo via brew
brew install hugo
- Clone the repo onto your local machine
git clone git@github.com:nelemansc/cassidynelemans.com.git
-
cd to the folder and make modifications. The theme used lives in the
themes/
directory. -
run
hugo server -D
to generate the site via hugo emulation. The site can be accessed at http://localhost:1313. If all looks good, commit your changes and push.
The Github Action associated with the repo does the following:
- checks out the repo
- Runs
hugo -D
to generate the static assets - Uploads the static assets to S3
- Invalidates the Cloudfront cache so the newest version is served up by the CDN
The following secrets need to be configured in the repository settings:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
AWS_S3_BUCKET
DISTRIBUTION_ID
(the Cloudfront distribution ID)