-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-github.sh
More file actions
executable file
·32 lines (27 loc) · 1.15 KB
/
setup-github.sh
File metadata and controls
executable file
·32 lines (27 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Script to set up GitHub repository and push code
# Run this after creating the repository on GitHub
set -e
echo "🚀 Setting up GitHub repository..."
# Check if repository exists
if git ls-remote --exit-code origin &>/dev/null; then
echo "✅ Repository exists, pushing code..."
git push -u origin main
echo "✅ Code pushed successfully!"
else
echo "❌ Repository not found. Please create it first:"
echo ""
echo "Option 1: Create via GitHub web interface:"
echo " 1. Go to https://github.com/organizations/Pink-Marlin-Digital/repositories/new"
echo " 2. Repository name: trymarlin-workflows"
echo " 3. Description: n8n workflow automation platform deployed on Heroku"
echo " 4. Set to Public"
echo " 5. DO NOT initialize with README, .gitignore, or license"
echo " 6. Click 'Create repository'"
echo ""
echo "Option 2: Create via GitHub CLI (if authenticated):"
echo " gh repo create Pink-Marlin-Digital/trymarlin-workflows --public --description 'n8n workflow automation platform deployed on Heroku'"
echo ""
echo "Then run this script again to push the code."
exit 1
fi