From e22d784e320b3fca5bc65feabfd1c0ff5c0beae1 Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Fri, 20 Oct 2023 11:18:26 +0200 Subject: [PATCH] WIP: test de la CI --- .forgejo/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 833f399..39172d7 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -38,3 +38,27 @@ jobs: done [ $errors -gt 0 ] && false true + + deploiement: + runs-on: linux_amd64 + steps: + - name: Build html files + shell: bash + run: | + cd /home/webmaster/site-chalec.org + files=$(cat .modified) + if [ -z "$files" ]; then + files=$(find . -name "*.stl" -printf %P) + fi + errors=0 + for file in $files + do + echo "Construction de $file" + stl log clean + stl wip -F $file | grep -e "Err" -e "erreur de" -e "Aucun fichier" && errors=$((errors+1)) # error if err is read in standard output + done + [ $errors -gt 0 ] && false + true + - name: Rebuild the sidebar + shell: bash + run: stl sidebar load