ci: switch over to using forgejo actions
All checks were successful
On_Push / pdfs (budget) (push) Successful in 13s
On_Push / pdfs (events) (push) Successful in 36s
On_Push / pdfs (handovers) (push) Successful in 15s
On_Push / pdfs (minutes) (push) Successful in 13s

This commit is contained in:
silver 2024-08-10 23:40:35 +01:00
parent b3d2b83fed
commit d05ec2f214
Signed by: silver
GPG key ID: 0A1071E702CE4B4E
12 changed files with 80 additions and 71 deletions

View file

@ -2,9 +2,10 @@
root="$PWD"
folder="events"
folder_html="html_${folder}"
folder_pdf="pdf_${folder}"
folder="Events"
folder_lower="events"
folder_html="html_${folder_lower}"
folder_pdf="pdf_${folder_lower}"
function build_html() {
# used to match **
@ -34,20 +35,20 @@ function build_html() {
cargo-bfom
# copy in teh relevent files
cp -R _Templates/* "./${folder}_html"
cp -R _Templates/* "./${folder_lower}_html"
# no need to have the template in the output
rm -f ./${folder}_html/_template.md
rm -f ./${folder}_html/event.html
rm -f ./${folder_lower}_html/_template.md
rm -f ./${folder_lower}_html/event.html
rm -f .md.toml
# make the final folder
mkdir -p "$root/$folder_html/$year_string"
# copy everything to teh final folder
cp -R ./${folder}_html/* "$root/$folder_html/$year_string"
cp -R ./${folder_lower}_html/* "$root/$folder_html/$year_string"
# remove teh temp folder
rm -rf "./${folder}_html"
rm -rf "./${folder_lower}_html"
# return to root
cd "$root_html"