Files
opora_members/publish.sh
T

17 lines
406 B
Bash
Executable File

#!/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)"