42 lines
974 B
Markdown
42 lines
974 B
Markdown
# Deploy — audio-voice-converter
|
|
|
|
اسکریپتهای CI/CD پروژه `audio-voice-converter`.
|
|
|
|
## ساختار
|
|
|
|
```
|
|
deploy/
|
|
├── README.md ← این فایل
|
|
└── scripts/
|
|
├── sync.ps1 ← کپی فایلها از source به repo
|
|
└── push.ps1 ← git commit + push به Gitea
|
|
```
|
|
|
|
## پیشنیازها
|
|
|
|
- متغیر محیطی `AUDIO_SOURCE_ROOT` تنظیم شده باشه (مسیر پوشهی source)
|
|
- دسترسی git به remote (credential یا SSH key)
|
|
|
|
```powershell
|
|
$env:AUDIO_SOURCE_ROOT = "D:\projects\google_meet_captions"
|
|
```
|
|
|
|
## استفاده
|
|
|
|
```powershell
|
|
# فقط sync (کپی فایلها بدون push)
|
|
.\scripts\sync.ps1
|
|
|
|
# sync + commit + push
|
|
.\scripts\sync.ps1 | .\scripts\push.ps1
|
|
|
|
# یا مستقیم push (اگر sync قبلاً انجام شده)
|
|
.\scripts\push.ps1
|
|
```
|
|
|
|
## جریان کلی
|
|
|
|
```
|
|
source dirs → sync.ps1 → repo files → push.ps1 → Gitea
|
|
```
|