1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 01:26:03 +02:00

deploy: use top-level index.json

This commit is contained in:
Marco Bonelli 2019-04-02 20:37:53 +02:00 committed by Agniva De Sarker
parent 7105f3c20a
commit 697d8b3b78

View file

@ -33,14 +33,14 @@ function rebuild_index {
function build_archive { function build_archive {
rm -f $TLDR_ARCHIVE rm -f $TLDR_ARCHIVE
cd $TLDRHOME/ cd $TLDRHOME/
zip -r $TLDR_ARCHIVE pages*/ LICENSE.md zip -r $TLDR_ARCHIVE pages*/ LICENSE.md index.json
echo "Pages archive created." echo "Pages archive created."
} }
function upload_assets { function upload_assets {
git clone --quiet --depth 1 git@github.com:${SITE_REPO_SLUG}.git $SITE_HOME git clone --quiet --depth 1 git@github.com:${SITE_REPO_SLUG}.git $SITE_HOME
mv -f $TLDR_ARCHIVE $SITE_HOME/assets/ mv -f $TLDR_ARCHIVE $SITE_HOME/assets/
cp -f $TLDRHOME/pages/index.json $SITE_HOME/assets/ cp -f $TLDRHOME/index.json $SITE_HOME/assets/
cd $SITE_HOME cd $SITE_HOME
git add -A git add -A