1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

ci: add PDF upload to deploy script

This commit is contained in:
Owen Voke 2020-11-27 09:29:09 +00:00 committed by Starbeamrainbowlabs
parent 1d2b4242c8
commit 252271c35a

View file

@ -30,6 +30,11 @@ function upload_assets {
mv -f "$TLDR_ARCHIVE" "$SITE_HOME/assets/"
cp -f "$TLDRHOME/index.json" "$SITE_HOME/assets/"
# Copy PDF to assets
if [[ -f "${TLDRHOME}/scripts/pdf/tldr-pages.pdf" ]]; then
cp -f "${TLDRHOME}/scripts/pdf/tldr-pages.pdf" "${SITE_HOME}/assets/tldr-book.pdf"
fi
cd "$SITE_HOME"
git add -A
git commit -m "[GitHub Actions] uploaded assets after commit ${GITHUB_SHA}"