-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathship.sh
More file actions
executable file
·51 lines (43 loc) · 1.77 KB
/
Copy pathship.sh
File metadata and controls
executable file
·51 lines (43 loc) · 1.77 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
#!/usr/bin/env bash
# Ship datasip v0.1.0: commit, tag, push, and set GitHub description + topics.
# Run this from the repo root in your macOS Terminal (needs `gh` authed).
set -euo pipefail
# clear any stale git locks the cloud bridge may have left
rm -f .git/HEAD.lock .git/index.lock .git/objects/*/tmp_obj_* 2>/dev/null || true
# create the CI workflow (protected path — written locally, not via the bridge)
mkdir -p .github/workflows
cat > .github/workflows/build.yml <<'YML'
name: build
on:
push:
branches: [ main ]
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- run: go build -o datasip .
- run: go vet ./...
YML
go mod tidy
go build -o /tmp/datasip . && echo "✓ builds"
git add -A
git commit -m "Add Go implementation (Bubble Tea TUI), docs, CI, and launch marketing" || echo "(nothing to commit)"
# re-point v0.1.0 at the full first release (Go + docs)
git tag -f v0.1.0
git push origin main
git push -f origin v0.1.0
# GitHub repo marketing metadata
gh repo edit zainulabidin302/datasip \
--description "🥤 See which app is eating your data — live, per-app, over any time window, in your terminal. For capped/5G/tethered connections." \
--add-topic macos --add-topic cli --add-topic tui --add-topic bandwidth-monitor \
--add-topic network-monitor --add-topic data-usage --add-topic golang \
--add-topic bubbletea --add-topic terminal --add-topic developer-tools
# a proper GitHub Release with notes
gh release create v0.1.0 --title "datasip v0.1.0 — first release 🥤" --notes-file RELEASE_v0.1.0.md || \
gh release edit v0.1.0 --notes-file RELEASE_v0.1.0.md
echo "✓ shipped. https://github.com/zainulabidin302/datasip"