Add safe Git publishing scripts

This commit is contained in:
Cowork committed 2026-11-17 14:13:15 +03:00
1 parent 2fc3568484
commit 1b93f77484
4 files changed
+39

No files matched your search

Executable
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
# Only source, docs, and static UI are eligible for publishing.
git add -u
git add .gitignore README.md app.py db.py index.html static/
if ! git diff --cached --quiet; then
git diff --cached --check
git commit -m "${1:-Update member registry}"
else
echo "No source changes to commit."
fi
git push -u origin "$(git branch --show-current)"