Build process: Prevent uploading with unstaged changes

This commit is contained in:
RunasSudo 2021-02-25 00:45:58 +11:00
parent 84affafe60
commit e8ca33f53d
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ mobi:
./po_ebook_convert.py _build/epub/PointsofOrder.epub _build/epub/PointsofOrder.mobi --mobi-file-type=both --remove-first-image --cover=_static/cover.jpg --chapter=/ --change-justification=left --mobi-ignore-margins --no-inline-toc
upload:
git update-index --refresh > /dev/null; if git diff-index --quiet HEAD -- ; then true; else echo Cannot deploy with unstaged changes; exit 1; fi
cp -r _build/html/* '/home/runassudo/Documents/Work/School Cloud Data/unenc/public/www/pointsoforder'
sha256sum _build/latex/PointsOfOrder_Lulu.pdf | awk '{print substr($$1,0,6);}' > _build/latex/PointsOfOrder_Lulu.pdf.sha256
rm '/home/runassudo/Documents/Work/School Cloud Data/unenc_transient/Lulu/PointsOfOrder_Lulu'*.pdf || true