Files
workphone-sdk/docs/gitea/sync_when_online.sh
2026-05-24 08:46:00 +08:00

11 lines
266 B
Bash
Executable File

#!/usr/bin/env bash
# NAS/Gitea 恢复后:补推 main + 同步 Wiki
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT"
echo "==> git push gitea main"
git push gitea main
echo "==> publish wiki"
python3 docs/gitea/publish_wiki.py
echo "Done."