Pages
What this solves
You have a Hugo docs or website repository and want Forgejo-native static hosting.
Hugo deploys cleanly when the workflow pins a Hugo version and publishes the generated public directory.
Pages
You have a Hugo docs or website repository and want Forgejo-native static hosting.
Hugo is fast enough that most teams do not need a complex deployment pipeline. Pin the extended Hugo build when your theme needs Sass processing, run the production build, and publish the `public` directory produced by that exact commit.
name: pages
on: [push]
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: hugo --minify
- run: test -f public/index.htmlPin the Hugo version if your theme is sensitive to renderer changes.
Fetch submodules when themes live outside the repository.
Preview taxonomy, sitemap, and canonical URLs before switching DNS.
Build MkDocs in Forgejo Actions and publish documentation with Fjord Pages.
Plan custom domains for static sites deployed from Forgejo workflows.
Automate Forgejo with fj, Actions, raw API calls, repository hooks, secrets, and release workflows.