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:
parent
1d2b4242c8
commit
252271c35a
1 changed files with 5 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue