中文 | English
Use this guide when publishing the local project to GitHub or when checking that future updates only include source code, tests, configuration templates, and documentation.
git status --short
git ls-filesTracked files should only include source code, tests, configuration templates, and documentation. They should not include:
.env.venv/outputs/,outputs_*/- SQLite databases
- model logs
- generated videos, images, or audio files
source .venv/bin/activate
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -q
python -m compileall src/shortdrama_pipelineTests use fake providers by default. They do not call online models or consume credits.
Scan the tracked working tree:
git grep -n -I -E "(ark-[A-Za-z0-9_-]{12,}|Bearer[[:space:]]+[A-Za-z0-9._~+/=-]{12,}|AKLT[A-Za-z0-9%._~+/=-]{12,}|X-Tos-(Credential|Signature)=)" -- . ':!uv.lock'Scan git history:
git log --all -p -- . ':!uv.lock' | rg -n "(ark-[A-Za-z0-9_-]{12,}|Bearer\\s+[A-Za-z0-9._~+/=-]{12,}|AKLT[A-Za-z0-9%._~+/=-]{12,}|X-Tos-(Credential|Signature)=)"Expected result: no real keys, Authorization tokens, signed TOS URLs, or usable credentials should appear.
If the directory is not a git repository yet:
git init
git branch -M mainReview the diff before staging:
git diff
git add README.md README.en.md SECURITY.md docs/ src/ tests/ pyproject.toml .env.example .gitignore .github/workflows/ci.yml uv.lock
git status --short
git commit -m "Initial shortdrama pipeline"Avoid blindly running git add . without checking the working tree first.
If GitHub CLI is installed and authenticated:
gh repo create shortdrama-pipeline --private --source=. --remote=origin --pushIf the repository already exists:
git remote add origin git@github.com:<your-user-or-org>/shortdrama-pipeline.git
git push -u origin mainUse a public repository only if you are certain the project is ready to be public.
After pushing, check:
- the GitHub file list only contains necessary source and documentation files
- GitHub Actions passes
- Chinese and English README links work
- the Security policy opens from GitHub's sidebar
- the repository About section has a description and topics
If you share the project externally, keep real .env files, model outputs, and generated videos in local or private storage only.