WIP: test de la CI
/ synchro (push) Successful in 2s Details
/ tests (push) Successful in 9s Details
/ deploiement (push) Successful in 23s Details

This commit is contained in:
Adrien Bourmault 2023-10-20 11:18:26 +02:00
parent f54b16a09e
commit e22d784e32
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 24 additions and 0 deletions

View File

@ -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