forgefed/build.sh
Anthony Wang 0e45d12d12 Rewrite .woodpecker.yml to use Alpine and pipx (#206)
The current CI pipeline was a workaround for Codeberg-CI/feedback#117 and is currently broken. This PR makes it use Alpine and pipx instead which should be more reliable.

Reviewed-on: https://codeberg.org/ForgeFed/ForgeFed/pulls/206
Co-authored-by: Anthony Wang <a@exozy.me>
Co-committed-by: Anthony Wang <a@exozy.me>
2023-08-30 19:37:38 +00:00

19 lines
422 B
Bash
Executable file

#!/bin/bash
set -e
git_branch=`git rev-parse --abbrev-ref HEAD`
git_commit_id=`git rev-parse HEAD`
git_commit_id_short=`git rev-parse --short HEAD`
zola build
cp context.jsonld public/ns
mkdir -p public/spec
pipx run bikeshed spec "spec.bs" "public/spec/index.html" \
--md-text-macro="GITBRANCH $git_branch" \
--md-text-macro="GITCOMMIT $git_commit_id" \
--md-text-macro="GITSHORT $git_commit_id_short"