mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-09 16:24:44 +03:00
deploy: use top-level index.json
This commit is contained in:
parent
7105f3c20a
commit
697d8b3b78
@ -33,14 +33,14 @@ function rebuild_index {
|
||||
function build_archive {
|
||||
rm -f $TLDR_ARCHIVE
|
||||
cd $TLDRHOME/
|
||||
zip -r $TLDR_ARCHIVE pages*/ LICENSE.md
|
||||
zip -r $TLDR_ARCHIVE pages*/ LICENSE.md index.json
|
||||
echo "Pages archive created."
|
||||
}
|
||||
|
||||
function upload_assets {
|
||||
git clone --quiet --depth 1 git@github.com:${SITE_REPO_SLUG}.git $SITE_HOME
|
||||
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
|
||||
git add -A
|
||||
|
Loading…
Reference in New Issue
Block a user