DEV Community

Cover image for How to deploy a Hugo site to S3 in 2024
Jerome Thibaud
Jerome Thibaud

Posted on

How to deploy a Hugo site to S3 in 2024

Happy to be here!

Here's a step by step guide to deploying a static website created with Hugo, from GitHub to Amazon S3 using GitHub Actions. Following security best practices, explaining relevant concepts, I go into the details of the necessary configuration.

In this guide I cover:

  • Storing Source Code in GitHub
  • Web Hosting in AWS
  • Hosting in S3
  • DNS in Route53
  • Secure and Fast Communication using CloudFront
  • Continuous Deployment to S3 with GitHub Actions
  • Authentication and Authorization between GitHub and AWS
  • GitHub Actions Workflow

I hope this will be useful to peeps embarking on the same journey. Happy to clarify any part of it if needed.

Read the full guide:
https://www.jeromethibaud.com/en/blog/deploy-hugo-site-to-s3/

Have a great day!

Top comments (0)