Mercurial
view bundle_push_to_git.sh @ 279:b3b547563ec7
Add Google connector service and agent wiki
Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 22:22:36 -0700 |
| parents | 2b9e75756825 |
| children |
line wrap: on
line source
#!/usr/bin/env bash set -euo pipefail # Usage: ./deploy.sh <project_name> <bundle_path> if [ $# -ne 2 ]; then echo "Usage: $0 <project_name> <bundle_path>" exit 1 fi PROJECT_NAME="$1" BUNDLE_PATH="$2" SRC=$BUNDLE_PATH DEST="projects/$PROJECT_NAME" echo $BUNDLE_PATH $DEST mkdir -p "$DEST" # Force write copy as I write this. rsync -a --delete \ --exclude='.git/' \ --exclude='.gitignore' \ --chmod=Du+rwx,Fu+rw \ "$SRC"/ "$DEST"/ pushd "$DEST" > /dev/null if [ ! -d .git ]; then git init [ -f .gitignore ] || touch .gitignore git add . git commit -m "Initial import of mrjunejune_server_bundle" else git add -A git commit -m "Update bundle @ $(date -u +"%Y-%m-%dT%H:%M:%SZ")" fi popd > /dev/null echo "✅ Deployed to $DEST (git repo initialized: $( [ -d "$DEST/.git" ] && echo yes || echo no ))"