-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature Support Download Of Individual Languages By Clients
Signed-off-by: Adam Henley <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ function initialize { | |
export TLDRHOME=${GITHUB_WORKSPACE:-$(pwd)} | ||
fi | ||
|
||
export TLDR_LANG_ARCHIVES_DIRECTORY="$TLDRHOME/language_archives" | ||
export TLDR_ARCHIVE="tldr.zip" | ||
export SITE_HOME="$HOME/site" | ||
export SITE_REPO_SLUG="tldr-pages/tldr-pages.github.io" | ||
|
@@ -29,12 +30,13 @@ function initialize { | |
function upload_assets { | ||
git clone --quiet --depth 1 [email protected]:${SITE_REPO_SLUG}.git "$SITE_HOME" | ||
mv -f "$TLDR_ARCHIVE" "$SITE_HOME/assets/" | ||
mv -f "$TLDR_LANG_ARCHIVES_DIRECTORY/*" "$SITE_HOME/assets/" | ||
cp -f "$TLDRHOME/index.json" "$SITE_HOME/assets/" | ||
cp -f "${TLDRHOME}/scripts/pdf/tldr-pages.pdf" "${SITE_HOME}/assets/tldr-book.pdf" | ||
|
||
sha256sum \ | ||
"${SITE_HOME}/assets/index.json" \ | ||
"${SITE_HOME}/assets/${TLDR_ARCHIVE}" \ | ||
"${SITE_HOME}/assets/*.zip" \ | ||
"${SITE_HOME}/assets/tldr-book.pdf" \ | ||
> "${SITE_HOME}/assets/tldr.sha256sums" | ||
|
||
|