-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-github.sh
More file actions
executable file
·66 lines (54 loc) · 1.84 KB
/
Copy pathsetup-github.sh
File metadata and controls
executable file
·66 lines (54 loc) · 1.84 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
# setup-github.sh — Initialize the Flock repository and push to GitHub.
#
# Prerequisites:
# - git installed
# - GitHub CLI (gh) installed and authenticated → brew install gh && gh auth login
#
# Usage:
# chmod +x setup-github.sh
# ./setup-github.sh
set -euo pipefail
REPO_NAME="Flock"
DESCRIPTION="🐦 Swift macro that auto-generates plural type aliases — @Flock struct User {} → typealias Users = [User]"
TOPICS="swift swift-macro swift-package-manager typealias ios macos"
echo "▶ Initialising git repository…"
git init
git add .
git commit -m "chore: initial commit — Flock v1.0.0"
echo "▶ Creating GitHub repository…"
gh repo create "$REPO_NAME" \
--public \
--description "$DESCRIPTION" \
--push \
--source .
echo "▶ Adding repository topics…"
gh repo edit \
--add-topic "swift" \
--add-topic "swift-macro" \
--add-topic "swift-package-manager" \
--add-topic "typealias" \
--add-topic "ios" \
--add-topic "macos"
echo "▶ Creating v1.0.0 release tag…"
git tag -a v1.0.0 -m "Flock v1.0.0 — initial release"
git push origin v1.0.0
echo "▶ Creating GitHub release…"
gh release create v1.0.0 \
--title "Flock v1.0.0" \
--notes "## 🐦 Flock — initial release
Flock is a Swift macro library that automatically synthesises a plural \`typealias\` for any named type. Annotate once with \`@Flock\`, and the compiler takes care of the rest.
### Features
- ✅ Works with \`struct\`, \`class\`, \`enum\`, and \`actor\`
- ✅ Zero runtime overhead — pure compile-time expansion
- ✅ Covers common English pluralisation rules (irregular, Latin/Greek, f→ves, …)
- ✅ Swift 5.9+ / Xcode 15+
### Usage
\`\`\`swift
import Flock
@Flock struct User { var name: String }
// → public typealias Users = [User]
\`\`\`"
echo ""
echo "✅ Done! Flock is live on GitHub."
gh repo view --web