forked from MTES-MCT/parcours-r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_deploy.sh
37 lines (26 loc) · 1.24 KB
/
_deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
set -e
git config --global user.email "[email protected]"
git config --global user.name "Stéphane Trainel"
git clone -b gh-pages https://${GITHUB_PAT}@github.com/${TRAVIS_REPO_SLUG}.git output
rm -fr ./output/*
cp -r ./Supports_formations/m1_socle/_book ./output/
mv ./output/_book ./output/m1
cp -r ./Supports_formations/m1_socle/_bookdown_files ./output/m1/
cp -r ./Supports_formations/m2_preparation_donnees/_book ./output/
mv ./output/_book ./output/m2
cp -r ./Supports_formations/m2_preparation_donnees/_bookdown_files ./output/m2/
cp -r ./Supports_formations/m3_stats_desc/_book ./output/
mv ./output/_book ./output/m3
cp -r ./Supports_formations/m3_stats_desc/_bookdown_files ./output/m3/
cp -r ./Supports_formations/m4_analyse_donnees/_book ./output/
mv ./output/_book ./output/m4
cp -r ./Supports_formations/m4_analyse_donnees/_bookdown_files ./output/m4/
cp -r ./Supports_formations/m5_valorisation_des_donnees/_book ./output/
mv ./output/_book ./output/m5
cp -r ./Supports_formations/m5_valorisation_des_donnees/_bookdown_files ./output/m5/
cp -r ./assets ./semantic index.html ./output/
cd output
git add --all -f ./*
git commit --allow-empty -m"Update site - build by travis-ci (#${TRAVIS_REPO_SLUG})"
git push origin gh-pages