NexaCloud is open to everyone. Free to start, no credit card.Create a free account
NEXACLOUD / GUIDES

Any static site, from GitHub Actions.

The generic recipe for every static site generator.

Any static site generator works the same way: build it in GitHub Actions, then upload the output folder. Only the folder name and build command change.

ToolBuild commandOutput folder
Vite, Vue, Svelte (Vite)npm run builddist
Astronpm run builddist
Create React Appnpm run buildbuild
Next.js (static export)npm run buildout
Docusaurusnpm run buildbuild
VitePressnpm run docs:builddocs/.vitepress/dist
Eleventynpx @11ty/eleventy_site
Hugohugo --minifypublic
Jekyllbundle exec jekyll build_site

Set up the project

  1. Create a free NexaCloud account with GitHub or email.
  2. Open Projects, enter a name, your GitHub owner and repository, and create the project. Copy the deploy token shown once.
  3. In your repository open Settings → Secrets and variables → Actions and add a secret named NEXACLOUD_TOKEN with that token.
  4. Commit the workflow below as .github/workflows/nexacloud.yml and push.

Use the workflow from the documentation, replacing the build step and the cd folder with the values from the table. For Hugo, Jekyll or Eleventy replace the Node setup with the tool’s own setup action.

Requirements

The output must contain index.html at its root and stay within 300 files, 5 MB per file and 25 MB in total. See the limits.