Skip to content

Commit

Permalink
Improve build to work in a production setting
Browse files Browse the repository at this point in the history
* Add extra logging for troubleshooting
* Add 'FULL_RUN' flag to test short runs first
  • Loading branch information
Arjan Dikhoff committed Oct 25, 2024
1 parent 2310323 commit b5659d0
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ rm -rf $migrateDir
rm -rf $sphinxDir
rm -rf $repoDir

echo "Migrate Godot to Redot"
mkdir -p $migrateDir
python migrate.py $inputDir $migrateDir

echo "Translate to html"
mkdir -p $sphinxDir
sphinx-build -b html -j 4 $migrateDir $sphinxDir
if [ -n "$FULL_RUN" ]
then
echo "Migrate Godot to Redot"
python migrate.py $inputDir $migrateDir

echo "Translate to html"
sphinx-build -b html -j 4 $migrateDir $sphinxDir
fi

echo "DUMMY FILE FOR TESTING: $date" > $sphinxDir/test.html

Expand Down Expand Up @@ -80,7 +83,11 @@ then
git config user.email "[email protected]"
git config user.name "Redot Docs Build Worker"
fi

echo "### SSH CONFIG VALUES ###"
ls -la ~/.ssh
cat ~/.ssh/known_hosts
echo "### SSH TEST ###"
ssh -T -vv [email protected]
echo "### GIT CONFIG VALUES ###"
git config core.pager cat
git config --list
Expand Down

0 comments on commit b5659d0

Please sign in to comment.