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