build.sh 422 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set -e
  3. git_branch=`git rev-parse --abbrev-ref HEAD`
  4. git_commit_id=`git rev-parse HEAD`
  5. git_commit_id_short=`git rev-parse --short HEAD`
  6. zola build
  7. cp context.jsonld public/ns
  8. mkdir -p public/spec
  9. pipx run bikeshed spec "spec.bs" "public/spec/index.html" \
  10. --md-text-macro="GITBRANCH $git_branch" \
  11. --md-text-macro="GITCOMMIT $git_commit_id" \
  12. --md-text-macro="GITSHORT $git_commit_id_short"