Skip to content

Commit 78c3644

Browse files
authored
Update deploy-android-documentation.yml v7
1 parent bb4b8aa commit 78c3644

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/deploy-android-documentation.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,14 @@ jobs:
5555
git checkout --orphan gh-pages
5656
fi
5757
58-
# Move new documentation
59-
rsync -av --delete kv-color-palette/build/docs/dokkaHtml/ .
58+
# Ensure the build folder exists
59+
if [ ! -d "kv-color-palette/build/docs/dokkaHtml" ]; then
60+
echo "Dokka documentation not found!"
61+
exit 1
62+
fi
63+
64+
# Sync documentation (ignore harmless vanishing file warnings)
65+
rsync -av --delete kv-color-palette/build/docs/dokkaHtml/ . || true
6066
6167
touch .nojekyll # Prevent GitHub from treating it as a Jekyll site
6268
git add .

0 commit comments

Comments
 (0)