mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 14:06:00 +02:00
deploy: use top-level index.json
This commit is contained in:
parent
7105f3c20a
commit
697d8b3b78
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue