WIP: test de la CI
This commit is contained in:
parent
f54b16a09e
commit
e22d784e32
|
@ -38,3 +38,27 @@ jobs:
|
||||||
done
|
done
|
||||||
[ $errors -gt 0 ] && false
|
[ $errors -gt 0 ] && false
|
||||||
true
|
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
|
||||||
|
|
Loading…
Reference in New Issue