Skip to content

Commit

Permalink
Configure ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudflare build worker committed Oct 25, 2024
1 parent 25f3bbb commit 5a24cb6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ _migrated/
_sphinx/
_repo/
build-report/
id_priv
env/
__pycache__
*.pyc
Expand Down
19 changes: 11 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:allow_comments: False

Godot Docs – *master* branch
============================
Godot Docs – *master* branch - experimental
===========================================

Welcome to the official documentation of `Godot Engine <https://godotengine.org>`__,
the free and open source community-driven 2D and 3D game engine! If you are new
Expand Down
4 changes: 2 additions & 2 deletions migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@
('MadeWithGodot', 'MadeWithRedot'),
(' if on_rtd else "(DEV) "', ''),
('<span class="fa fa-book"> Read the Docs</span>', '<span class="fa fa-book"> Versions</span>'),
("const homeUrl = baseUrl.split('/latest/')[0] + '/stable/';", "const homeUrl = 'https://docs-stable.redotengine.org/';"),
("const homeUrl = baseUrl.split('/latest/')[0] + '/stable/';", "const homeUrl = 'https://docs.redotengine.org/en/stable';"),
('{% set listed_languages = ({"en":"#", "de":"#", "es":"#", "fr":"#"}).items() -%}', '{% set listed_languages = ({"en":"#"}).items() -%}'),
('({"stable":"#", "latest":"#"})', '({"stable":"https://docs-stable.redotengine.org/", "latest":"https://docs-latest.redotengine.org/", "3.6":"https://docs-3-6.redotengine.org/"})'),
('({"stable":"#", "latest":"#"})', '({"stable":"https://docs.redotengine.org/en/stable", "latest":"https://docs.redotengine.org/en/latest", "3.6":"https://docs.redotengine.org/en/3.6"})'),
('Hosted by <a href="https://readthedocs.org">Read the Docs', 'Hosted by <a href="https://cloudflare.com">CloudFlare'),
('<a href="https://docs.readthedocs.io/page/privacy-policy.html">Privacy Policy</a>', ''),
('G-dot', 'Godot'),
Expand Down

0 comments on commit 5a24cb6

Please sign in to comment.