DEV Community

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

Posted on

3

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

๐Ÿ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay