mrrrme-emotion-ai / push-both.sh
michon's picture
Upload dockerfile
de66cf1
raw
history blame contribute delete
687 Bytes
#!/bin/bash
echo "πŸ“ Checking for changes..."
if [[ -n $(git status -s) ]]; then
echo "βœ… Changes detected, committing..."
git add .
# Prompt for commit message
read -p "πŸ“ Commit message (press Enter for default): " commit_msg
if [ -z "$commit_msg" ]; then
commit_msg="Update $(date '+%Y-%m-%d %H:%M')"
fi
git commit -m "$commit_msg"
else
echo "βœ… No changes to commit"
fi
echo ""
echo "πŸš€ Pushing to GitHub..."
git push origin main
echo ""
echo "πŸš€ Pushing to Hugging Face Spaces..."
git push huggingface main --force
echo ""
echo "βœ… Successfully pushed to both GitHub and Hugging Face!"
EOF
chmod +x push-both.sh