when:
  - event: push
    branch: master
    paths:
      - docs/**
      - input.css
      - nix/pkgs/docs.nix

engine: microvm
image: nixos

dependencies:
  - nodejs

steps:
  - name: build docs
    command: |
      nix build .#docs

  - name: deploy
    command: |
      npx --yes wrangler pages deploy --branch master --project-name tangled-docs ./result/
