add deploy script
This commit is contained in:
parent
7b5e61fe13
commit
3f1e3059de
2 changed files with 10 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -13,3 +13,5 @@
|
||||||
*.fls
|
*.fls
|
||||||
*.xdv
|
*.xdv
|
||||||
*.run.xml
|
*.run.xml
|
||||||
|
|
||||||
|
.env
|
||||||
|
|
8
deploy.sh
Executable file
8
deploy.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# this should define:
|
||||||
|
# UNAME, HOST, PORT, DEST_DIR
|
||||||
|
source .env
|
||||||
|
|
||||||
|
latexmk cv.tex -xelatex && \
|
||||||
|
rsync --archive -hh --partial --info=stats1 --info=progress2 --modify-window=1 -e "ssh -p ${PORT}" cv.pdf ${UNAME}@${HOST}:${DEST_DIR}/${DEST_FILE}
|
Loading…
Reference in a new issue