fix some workflow bugs
Some checks failed
Build and publish CMBA rulebooks (Gitea) / build-release (push) Failing after 9s
Some checks failed
Build and publish CMBA rulebooks (Gitea) / build-release (push) Failing after 9s
This commit is contained in:
16
.github/workflows/release-docs.yml
vendored
16
.github/workflows/release-docs.yml
vendored
@@ -52,9 +52,10 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|
||||||
docs=(*.md)
|
for doc in *.md; do
|
||||||
|
# Skip README.md
|
||||||
for doc in "${docs[@]}"; do
|
[[ "$md" == "README.md" ]] && continue
|
||||||
|
basename="${doc%.md}"
|
||||||
# Mobile-friendly HTML with TOC + serif styling
|
# Mobile-friendly HTML with TOC + serif styling
|
||||||
pandoc "${doc}" \
|
pandoc "${doc}" \
|
||||||
--toc \
|
--toc \
|
||||||
@@ -64,19 +65,20 @@ jobs:
|
|||||||
--lua-filter pandoc-filters/shift-numbering.lua \
|
--lua-filter pandoc-filters/shift-numbering.lua \
|
||||||
--metadata-file metadata.yml \
|
--metadata-file metadata.yml \
|
||||||
--embed-resources \
|
--embed-resources \
|
||||||
--metadata title="CMBA ${doc}" \
|
--metadata title="CMBA ${basename}" \
|
||||||
--include-after-body=build/after-body.html \
|
--include-after-body=build/after-body.html \
|
||||||
--css styles/style.css \
|
--css styles/style.css \
|
||||||
-o "dist/${doc}.html"
|
-o "dist/${basename}.html"
|
||||||
|
|
||||||
# PDF
|
# PDF
|
||||||
# pandoc "${doc}" \
|
# pandoc "${doc}" \
|
||||||
# --metadata title="CMBA ${doc}" \
|
# --metadata title="CMBA ${doc}" \
|
||||||
# -o "dist/${doc}.pdf"
|
# -o "dist/${doc}.pdf"
|
||||||
|
|
||||||
|
# Include source markdown for transparency
|
||||||
|
cp ${doc} dist/
|
||||||
done
|
done
|
||||||
|
|
||||||
# Include source markdown for transparency
|
|
||||||
cp ${doc} dist/
|
|
||||||
|
|
||||||
- name: Create or update Gitea Release and upload assets
|
- name: Create or update Gitea Release and upload assets
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user