ci: switch over to using forgejo actions
This commit is contained in:
parent
b3d2b83fed
commit
d05ec2f214
12 changed files with 80 additions and 71 deletions
|
@ -2,9 +2,10 @@
|
|||
|
||||
root="$PWD"
|
||||
|
||||
folder="budget"
|
||||
folder_html="html_${folder}"
|
||||
folder_pdf="pdf_${folder}"
|
||||
folder="Budget"
|
||||
folder_lower="budget"
|
||||
folder_html="html_${folder_lower}"
|
||||
folder_pdf="pdf_${folder_lower}"
|
||||
|
||||
function build_html() {
|
||||
# used to match **
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
root="$PWD"
|
||||
|
||||
folder="handovers"
|
||||
folder_html="html_${folder}"
|
||||
folder_pdf="pdf_${folder}"
|
||||
folder="Handovers"
|
||||
folder_lower="handovers"
|
||||
folder_html="html_${folder_lower}"
|
||||
folder_pdf="pdf_${folder_lower}"
|
||||
|
||||
function build_html() {
|
||||
# used to match **
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
root="$PWD"
|
||||
|
||||
folder_html="html_minutes"
|
||||
folder_pdf="pdf_Minutes"
|
||||
folder_pdf="pdf_minutes"
|
||||
|
||||
# make teh html files first
|
||||
function build_html() {
|
||||
|
@ -40,14 +40,14 @@ function build_html() {
|
|||
rm -f .md.toml
|
||||
|
||||
# create teh new folders where stuff is going to
|
||||
mkdir -p "../../$folder_html/$year/Committee"
|
||||
mkdir -p "../../$folder_html/$year/Council"
|
||||
mkdir -p "../../$folder_html/${year}committee"
|
||||
mkdir -p "../../$folder_html/${year}council"
|
||||
|
||||
# iterate the files
|
||||
for file in {Committee,Council}_html/*.html; do
|
||||
for file in {committee,council}_html/*.html; do
|
||||
if [ -f "$file" ]; then
|
||||
stripped=''${file/_html/""}
|
||||
cp $file "../../$folder_html/$year/$stripped"
|
||||
cp $file "../../$folder_html/${year}$stripped"
|
||||
fi
|
||||
done
|
||||
# the temp folders where teh html was created, leaving these could cause ghost artifacts
|
||||
|
|
|
@ -9,7 +9,7 @@ indentation = 2
|
|||
src = "./Budget"
|
||||
|
||||
# Optional
|
||||
dest= "./html_Budget"
|
||||
dest= "./html_budget"
|
||||
|
||||
# html blocks you dont want to include in teh finished page
|
||||
# Optional
|
||||
|
|
|
@ -9,7 +9,7 @@ indentation = 2
|
|||
src = "./AAAAAAA"
|
||||
|
||||
# Optional
|
||||
dest= "./Events_html"
|
||||
dest= "./events_html"
|
||||
|
||||
# html blocks you dont want to include in teh finished page
|
||||
# Optional
|
||||
|
|
|
@ -9,7 +9,7 @@ indentation = 2
|
|||
src = "./Handovers"
|
||||
|
||||
# Optional
|
||||
dest= "./html_Handovers"
|
||||
dest= "./html_handovers"
|
||||
|
||||
# html blocks you dont want to include in teh finished page
|
||||
# Optional
|
||||
|
|
|
@ -9,7 +9,7 @@ indentation = 2
|
|||
src = "./Committee"
|
||||
|
||||
# Optional
|
||||
dest= "./Committee_html"
|
||||
dest= "./committee_html"
|
||||
|
||||
# html blocks you dont want to include in teh finished page
|
||||
# Optional
|
||||
|
|
|
@ -9,7 +9,7 @@ indentation = 2
|
|||
src = "./Council"
|
||||
|
||||
# Optional
|
||||
dest= "./Council_html"
|
||||
dest= "./council_html"
|
||||
|
||||
# html blocks you dont want to include in teh finished page
|
||||
# Optional
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue