-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.sh
More file actions
executable file
·46 lines (38 loc) · 1.18 KB
/
setup_github.sh
File metadata and controls
executable file
·46 lines (38 loc) · 1.18 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#
# GitHub Repository Setup Script
# Run this script after logging into GitHub CLI
#
# Usage:
# 1. Install gh CLI: brew install gh
# 2. Login: gh auth login
# 3. Run this script: ./setup_github.sh
#
set -e
echo "🚀 GitHub Repository Setup"
echo "========================"
# Check if logged in
echo "📋 Checking GitHub authentication..."
if ! gh auth status &> /dev/null; then
echo "❌ Not logged into GitHub. Please run: gh auth login"
exit 1
fi
echo "✅ GitHub authenticated"
# Create repository
REPO_NAME="Andy-agent-skill-workshop"
REPO_DESC="🧠 纯 Agent 原生 Skills - 智能体社区技能合集"
echo "📦 Creating repository: $REPO_NAME"
# Create repo (public by default)
gh repo create "$REPO_NAME" \
--description "$REPO_DESC" \
--public \
--source . \
--push
echo ""
echo "✅ Repository created and pushed successfully!"
echo ""
echo "📝 Next steps:"
echo " 1. Add topics to your repo: gh repo edit $REPO_NAME --add-topic workbuddy,openclaw,clawhub,ai-agent,agent-native,skill"
echo " 2. Visit your repo: https://github.com/$(gh api user --jq .login)/$REPO_NAME"
echo " 3. Add a LICENSE file via GitHub UI if needed"
echo ""