---
title: "How to setup a blog with Hugo and Deno Deploy"
description: "A Hugo static site can be published on Deno Deploy by building it in GitHub Actions and serving the generated public directory with Deno's standard-library file server, imported directly by URL with no download or compile step."
url: "https://swe.quest/articles/how-to-setup-a-blog-with-hugo-and-deno-deploy-7b19707c0d32a809"
canonical: "https://deno.com/blog/hugo-blog-with-deno-deploy"
source: "Deno"
published: "2022-04-27"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["ci-cd","deployment","cdn-edge","javascript"]
---

# How to setup a blog with Hugo and Deno Deploy

A post on [Deno](https://swe.quest/sources/deno.md), published 2022-04-27, 5 min read, How-to. Original: [https://deno.com/blog/hugo-blog-with-deno-deploy](https://deno.com/blog/hugo-blog-with-deno-deploy)

## Summary

A Hugo static site can be published on Deno Deploy by building it in GitHub Actions and serving the generated public directory with Deno's standard-library file server, imported directly by URL with no download or compile step. The walkthrough covers installing Hugo, adding the ananke theme as a git submodule, creating posts, linking a GitHub repo to a Deno Deploy project in GitHub Actions mode, and a complete workflow YAML using peaceiris/actions-hugo and denoland/deployctl. Any static site generator works the same way, since Deno Deploy only needs to serve the built HTML files.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- Git and GitHub basics
- GitHub Actions workflows ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

Deno Deploy, Hugo, GitHub Actions, deployctl, Deno std file\_server

## Related posts

- [Static Files on Deno Deploy](https://swe.quest/articles/static-files-on-deno-deploy-c3e4ce7a78a60f71.md): Deno · 2022-02-10 · Medium · 6 min read · Serverless, CDN & edge, Deployment, JavaScript, CI/CD
  Deno Deploy now stores static files alongside deployed code and distributes them to edge locations, where edge code reads them via Deno file system APIs (readFile, readDir, open, stat, etc.) or fetch.
- [How to Build a Blog with Fresh](https://swe.quest/articles/how-to-build-a-blog-with-fresh-9e3aca10e6ed3207.md): Deno · 2022-10-25 · Medium · 6 min read · TypeScript, Frontend, Serverless
  A markdown blog can be built with Fresh, Deno's edge-first framework that ships zero client JavaScript by default, using file-based routes, custom GET handlers and server-side rendering.
- [How to build a static site with Lume](https://swe.quest/articles/how-to-build-a-static-site-with-lume-03f00be9f04a60ba.md): Deno · 2022-12-07 · Medium · 7 min read · Frontend, JavaScript, CI/CD, Deployment
  Lume, a Deno-based static site generator, can produce a blog either from the prebuilt "Simple blog" theme or from scratch using Markdown posts, Nunjucks layouts in \_includes, directory-level \_data.yml variables, and a TypeScript index page that lists posts via the search helper.
- [Build Your Own Cloud IDE with the Subhosting API](https://swe.quest/articles/build-your-own-cloud-ide-with-the-subhosting-api-182e8468c60d1771.md): Deno · 2024-01-16 · Medium · 10 min read · Serverless, TypeScript, Developer tools, API design
  A cloud IDE can be built on the Deno Subhosting API, which programmatically deploys user code to Deno Deploy's global V8 isolate cloud within seconds.
- [Build and Ship Astro Sites with Deno and Deno Deploy](https://swe.quest/articles/build-and-ship-astro-sites-with-deno-and-deno-deploy-3be8936cebaf2b24.md): Deno · 2023-07-21 · Medium · 12 min read · Frontend, Serverless, Deployment, TypeScript
  Astro sites can be built with the Deno runtime and hosted on Deno Deploy in two modes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
