steps:
  build-test:
    image: tjammer/ocaml-llvm:20240308
    commands:
      - opam install . -y --deps-only --with-test
      - opam exec -- dune build
      - opam exec -- dune runtest -f

  deploy:
    image: tjammer/ocaml-llvm:20240308
    commands:
      - bash .woodpecker_release.sh
    secrets: [ release ]
    when:
      - branch: main
        event: push
