#!/bin/sh if [ $(git rev-parse --abbrev-ref HEAD) != "main" ]; then exit 0 fi cd $(git rev-parse --show-toplevel) echo "Building docs" make -C docs txt make -C docs html git add docs/rfc.html git add docs/rfc.txt echo "Running tests before commit to main" go test ./... cd -