Actions

This is a sample repository to show a simple GitHub Actions workflow:

  • it builds an HTML page using Nix,
  • push it to GitHub Pages,
  • cache the result to a Backblaze B2 bucket (using nix copy),
  • save the result to a Backblaze B2 bucket (using b2 sync).

The name of the Backblaze B2 bucket is noteed-actions and the bucket is private. The bucket name could be a secret.

Here is the URL for the secrets of this particular repository: https://github.com/noteed/actions/settings/secrets

It seems the application key should have read-write access (write access is not enough) to the bucket (for the save step above, maybe also for the cache step).

Saving to Backblaze B2 can be done with this GitHub Action but since it runs in a container, it’s hard to give it the ./result symlink to upload. Using the b2 command directly is easier.