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 from Forgejo Actions to Fjord Pages.
Plan custom domains for static sites deployed from Forgejo workflows.
Understand what usually ports from GitHub Actions to Forgejo Actions and what needs testing.