This commit is contained in:
2025-11-17 17:13:29 +00:00
parent 583885d79b
commit 6c904da72b
6 changed files with 71 additions and 19 deletions

View File

@@ -70,3 +70,15 @@ mr_sync:
mr_add_all:
mr run git add --all
# Publish current directory to GitHub
[no-cd]
GH_publish:
echo "📦 Publishing to GitHub..."
test -d .git || git init
git add .
git commit -m "init" || true
gh repo create {{file_name(invocation_directory())}} --public --source=. --push --disable-wiki || true
git remote add origin git@github.com:$(gh api user -q .login)/{{file_name(invocation_directory())}}.git || true
git push -u origin $(git branch --show-current) || git push -u origin $(git branch --show-current) --force
echo "✅ Published to: https://github.com/$(gh api user -q .login)/{{file_name(invocation_directory())}}"