Skip to content

Commit 8d63526

Browse files
committed
WIP: Update deploy.sh script
This now no longer uses the python script to generate the documentation, but uses the output of the monster.
1 parent 05c0604 commit 8d63526

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/deploy.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ rm -rf out/master/ || exit 0
88
echo "Making the docs for master"
99
mkdir out/master/
1010
cp util/gh-pages/index.html out/master
11-
python3 ./util/export.py out/master/lints.json
11+
cp util/gh-pages/lints.json out/master
1212

1313
if [[ -n $TAG_NAME ]]; then
1414
echo "Save the doc for the current tag ($TAG_NAME) and point stable/ to it"
15-
cp -r out/master "out/$TAG_NAME"
16-
rm -f out/stable
17-
ln -s "$TAG_NAME" out/stable
15+
cp -Tr out/master "out/$TAG_NAME"
16+
ln -sf "$TAG_NAME" out/stable
1817
fi
1918

2019
if [[ $BETA = "true" ]]; then
@@ -28,8 +27,8 @@ cp util/gh-pages/versions.html out/index.html
2827
echo "Making the versions.json file"
2928
python3 ./util/versions.py out
3029

31-
cd out
3230
# Now let's go have some fun with the cloned repo
31+
cd out
3332
git config user.name "GHA CI"
3433
git config user.email "[email protected]"
3534

0 commit comments

Comments
 (0)