Skip to content
Skip the docs menu

Guide

Publish builds from GitHub Actions

Let GitHub Actions build and test your site, then send the build to Fuzops, which publishes it as an update. The secret and the workflow file.

Last updated 2 min read6 stepsView as Markdown

What you will end up with

Each push to the branch runs your workflow; when it succeeds, a new update appears in the site's Updates and goes live. Pushing code alone no longer publishes anything.

Go to the first step
On this page

Instead of building on your server, let GitHub Actions build your site and send the finished build to Fuzops. Only builds that pass your workflow go live, and your server does less work. GitLab CI works the same way with a job instead of a workflow file.

What you need#

  • A site whose code is on GitHub.
  • Access to the repository's Settings on GitHub.
  • A role that may see the site's secrets (owner, admin or developer).

Steps#

  1. Turn it on. Open the site's Updates › Update settings. Under Build elsewhere, publish here, turn on Publish the builds my CI sends.

    Build elsewhere, publish here in Update settingsBuild elsewhere, publish here in Update settings
  2. Make the secret. Choose Make a secret and copy it straight away: it is shown only once.

  3. Save the secret on GitHub. In your repository, open Settings › Secrets and variables › Actions › New repository secret. Use exactly the name the Fuzops page gives, and paste the secret.

  4. Add the workflow file. The page shows a GitHub Actions file made for your kind of site and branch. Either choose Add this file to my repository (when GitHub is connected under Code hosting), or Copy the file and save it in your repository at the path shown. The secret is read from your repository's secrets, never written in the file.

  5. Push a change. The workflow builds the site and sends the build to the Publish address. Fuzops publishes it like any other update, with your update steps.

  6. Check the update. Open the site's Updates tab: the new update appears, and you can open it like any other.

What you should see#

Each push to the branch runs your workflow; when it succeeds, a new update appears in the site's Updates and goes live. Pushing code alone no longer publishes anything.

If it goes wrong#

  • The workflow fails at the upload step with a refusal: the secret in GitHub does not match. Make a new secret in Fuzops (the old one stops working) and update it in GitHub.
  • The build is too big: the page shows Largest build. Leave out files the site does not need at run time.
  • The update fails on the server: open it in Fuzops. The server still runs the update steps on the build; steps that build again can be turned off under Update steps, since your workflow already did it.
  • You want to go back to building on the server: turn off Publish the builds my CI sends and confirm Build on the server.

Still stuck? Get help

Docs menu