Pages
What this solves
You want an Astro site or documentation project deployed from a Forgejo repository.
Astro works well as a static build: install dependencies, build to `dist`, then publish the output from a workflow.
Pages
You want an Astro site or documentation project deployed from a Forgejo repository.
Astro deployments are usually a clean static-site case. The important details are the Node version, package manager, output directory, and whether the site is served at a domain root or a subpath.
name: pages
on: [push]
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm run build
- run: test -d distSet Astro base configuration if the site is not served from the domain root.
Fail the workflow when generated links or assets are missing.
Add the custom domain after the default Pages URL is known-good.
Deploy a Vite static app to Fjord Pages from Forgejo Actions, with build output, workflow permissions and deploy steps spelled out.
Plan custom domains for Forgejo Pages sites, including DNS records, HTTPS expectations, verification steps and when to keep a default domain.
Understand what usually ports from GitHub Actions to Forgejo Actions, what needs testing, and how to plan a staged workflow migration.