Deploying map!

parent 198d2005
Pipeline #61677370 passed with stages
in 2 minutes and 27 seconds
......@@ -29,6 +29,7 @@ deploy:
- sed -i "s/REF/#$(git log --pretty=format:'%h' -n 1)/g" mkdocs.yml
- sed -i "s/HASH/$(git rev-parse HEAD)/g" mkdocs.yml
- ./changelog.sh
- ./filetree.sh
- mkdocs build
- rsync -e "ssh" -avz --delete --exclude="\.*" site/* $SSH_USER@$SSH_HOST:$SSH_ROOT/
artifacts:
......
......@@ -7,6 +7,9 @@ if [ $? -eq 0 ]; then
else
DRYRUN=0
fi
if [ $DRYRUN -ne 1 ]; then
echo -e "## Site Map" > docs/map.md
fi
OLDIFS=$IFS
files=($(tree -if))
......@@ -18,7 +21,7 @@ for file in ${files[@]}; do
file=$(echo $file | sed 's/\.md$//g')
if [ "$file" == "index" ]; then continue; fi
if [ $DRYRUN -ne 1 ]; then
echo -e "- [$file]($file)" >> docs/index.md
echo -e "- [$file]($file)" >> docs/map.md
else
echo -e "- [$file]($file)"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment