hugo-deployment-aws

Automate Hugo site deployment to AWS via GitHub Actions and CloudFront.

1|Updated Jul 31, 2025
One-click install
npx skills add https://github.com/hughescr/claude-code-config --skill hugo-deployment-aws
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugo-deployment-aws
Source: https://github.com/hughescr/claude-code-config/tree/main/plugins/hugo/skills/hugo-deployment-aws
Command: npx skills add https://github.com/hughescr/claude-code-config --skill hugo-deployment-aws

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill automates the deployment of Hugo sites to AWS, replacing manual, error-prone procedures with a repeatable, auditable pipeline.

Core Features & Use Cases

  • CI/CD integration: GitHub Actions triggers build, tests, and deployment for Hugo sites.
  • Serverless deployment: Uses Serverless Framework to provision and deploy AWS resources.
  • CloudFront invalidations: Automatic cache invalidation after deployment to ensure fresh content.
  • Local validation workflow: Supports local testing and content validation prior to publish.
  • Use Case: Publish a new blog post by pushing to develop, triggering the full deployment flow.

Quick Start

Push changes to the develop branch to trigger the GitHub Actions CI/CD workflow. Monitor the Actions tab for build and deployment progress. After deployment, CloudFront invalidation runs automatically; you should see the site updated within a few minutes.

Frequently Asked Questions about hugo-deployment-aws

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Hugo site deployment to AWS using GitHub Actions?

Automating Hugo site deployment to AWS uses GitHub Actions to trigger builds, run tests, and deploy via the Serverless Framework. Pushing changes to the develop branch initiates the CI/CD workflow, handling secret management and infrastructure provisioning automatically.

What is the CI/CD deployment lifecycle for Hugo sites on AWS?

The CI/CD deployment lifecycle for Hugo sites on AWS covers local development testing, content validation, and automated publishing. GitHub Actions builds the site, deploys resources using Serverless, and executes automatic CloudFront invalidations to ensure fresh content delivery.

How does CloudFront cache invalidation work after a Hugo deployment?

CloudFront cache invalidation runs automatically after a Hugo deployment completes. This CI/CD mechanism ensures that when new content publishes through GitHub Actions, the AWS CloudFront distribution clears cached files so visitors see updated site content within minutes.

Can I validate Hugo content locally before triggering an AWS deployment?

Yes, you can validate Hugo content locally before triggering an AWS deployment. The workflow supports local testing and content validation prior to publish, ensuring that only verified changes pushed to the develop branch initiate the GitHub Actions CI/CD pipeline.

Do I need the Serverless Framework to deploy Hugo sites to AWS CloudFront?

Yes, the Serverless Framework is used to provision and deploy AWS resources for Hugo sites. This CI/CD deployment model relies on Serverless alongside GitHub Actions to manage infrastructure, handle secrets, and automate CloudFront invalidations during the publishing flow.

What's the best way to publish a new Hugo blog post to AWS via CI/CD?

The best way to publish a new Hugo blog post to AWS via CI/CD is pushing changes to the develop branch. This triggers GitHub Actions to build the site, deploy through the Serverless Framework, and automatically invalidate CloudFront cache for fresh content delivery.