forked from godotengine/godot-docs
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cloudflare build worker
committed
Oct 25, 2024
1 parent
25f3bbb
commit 5a24cb6
Showing
4 changed files
with
16 additions
and
12 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ _migrated/ | |
_sphinx/ | ||
_repo/ | ||
build-report/ | ||
id_priv | ||
env/ | ||
__pycache__ | ||
*.pyc | ||
|
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 |
---|---|---|
|
@@ -46,6 +46,17 @@ echo "Translate to html" | |
mkdir -p $SPHINX_DIR | ||
sphinx-build -b html -j 4 $MIGRATE_DIR $SPHINX_DIR 2>&1 | tee -a $REPORT_FILE | ||
|
||
echo "Setting credentials" | ||
echo $BUILD_SSH_KEY > $WORK_DIR/id_priv | ||
SSH_COMMAND="ssh -i $WORK_DIR/id_priv" | ||
echo $SSH_COMMAND | ||
git config core.sshCommand "$SSH_COMMAND" | ||
git config core.pager cat | ||
git config user.email "[email protected]" | ||
git config user.name "Cloudflare build worker" | ||
|
||
git config --list | ||
|
||
echo "Cloning $LIVE_REPO $REPO_DIR" | ||
git clone $LIVE_REPO $REPO_DIR 2>&1 | tee -a $REPORT_FILE | ||
|
||
|
@@ -57,14 +68,6 @@ mkdir -p $BUILD_DIR | |
echo "cp -r ../$SPHINX_DIR/* $BUILD_DIR" 2>&1 | tee -a ../$REPORT_FILE | ||
cp -r ../$SPHINX_DIR/* $BUILD_DIR 2>&1 | tee -a ../$REPORT_FILE | ||
|
||
echo "Setting credentials" | ||
echo $BUILD_SSH_KEY > $WORK_DIR/id_priv | ||
git config core.sshCommand 'ssh -i $WORK_DIR/id_priv' | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Cloudflare build worker" | ||
|
||
git config --list | ||
|
||
echo "Commit and push to $GIT_LIVE_BRANCH, with message $GIT_COMMIT_MESSAGE" 2>&1 | tee -a ../$REPORT_FILE | ||
git add . 2>&1 | tee -a ../$REPORT_FILE | ||
git commit -m "$GIT_COMMIT_MESSAGE" 2>&1 | tee -a ../$REPORT_FILE | ||
|
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