Skip to content

Commit 303e379

Browse files
committed
No longer deploy 'gdnative', allow its deletion
1 parent feca147 commit 303e379

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

documentation/commit.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ date="$5"
2020
# Reopen later succeeds _despite being older_ -> inconsistent state (PR closed, but docs online).
2121
# This can be mitigated by always committing (no abort on stale).
2222

23+
2324
PRE="Docs | $repo/$num |"
2425
echo "$PRE start COMMIT operation."
2526

27+
if [[ "$repo" == "gdnative" ]]; then
28+
echo "$PRE INFO: 'gdnative' no longer deployed. Aborting."
29+
echo "SKIP_WEBSITE_DEPLOY=true" >> "$GITHUB_ENV"
30+
exit 0
31+
fi
32+
2633
git config user.name "Godot-Rust Automation"
2734
git config user.email "GodotRust@users.noreply.github.com"
2835

documentation/delete.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ echo "$PRE start DELETE operation."
1616
#grep -v "$repo $num" deployed.txt > deployed-tmp.txt
1717
#mv deployed-tmp.txt deployed.txt
1818

19-
if [[ "$num" == "master" ]]; then
19+
# Allow deletion of 'gdnative' master, since it's phased out.
20+
if [[ "$num" == "master" && "$repo" != "gdnative" ]]; then
2021
echo "::error::Cannot delete docs for master branch."
2122
exit 1
2223
fi

0 commit comments

Comments
 (0)