Keep message navigation and progress state synchronized, and preserve sequential split-flap count updates with a bounded queue. Publish the Obelisk skill under skills/obelisk for npx skills, sharing the same staging layout between CI and local releases with regression coverage.
22 lines
513 B
Bash
Executable File
22 lines
513 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SKILL_ARTIFACT="dist/obelisk-skill"
|
|
SKILL_REPO="dist/obelisk-skill-repo"
|
|
REMOTE="git@github.com:tommy0103/obelisk-skill.git"
|
|
|
|
if [ ! -d "$SKILL_ARTIFACT/scripts" ]; then
|
|
echo "Error: run 'npm run build:skill' first" >&2
|
|
exit 1
|
|
fi
|
|
|
|
bash packaging/stage-skill-repo.sh "$SKILL_REPO" "$SKILL_ARTIFACT"
|
|
|
|
cd "$SKILL_REPO"
|
|
rm -rf .git
|
|
git init
|
|
git remote add origin "$REMOTE"
|
|
git add -A
|
|
git commit -m "publish: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
|
git push --force origin HEAD:main
|