mirror of
https://github.com/forgefed/forgefed
synced 2024-11-22 03:43:10 +00:00
0e45d12d12
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>
19 lines
422 B
Bash
Executable file
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"
|