Skip to content

Commit

Permalink
עדכון עבור בנייה על פעולות גיטהאב
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Oct 27, 2024
1 parent 6dbd38d commit 5e2d9a5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/generate_videos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Generate Videos

on:
push:
branches:
- main # הפעלת הפעולה כשיש דחיפה לענף הראשי (main)

jobs:
build-and-upload:
runs-on: ubuntu-latest

steps:
# שלב 1: Checkout - הורדת קבצי הריפוזיטורי
- name: Checkout repository
uses: actions/checkout@v4

# שלב 2: התקנת Python
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

# שלב 3: התקנת כל התלויות
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # ודא שיש לך קובץ requirements.txt עם כל התלויות הנדרשות (כמו moviepy, gTTS וכו')
# שלב 4: הרצת הסקריפט ליצירת הסרטונים
- name: Run video generation script
run: |
python scripts/build.py # עדכן את הנתיב לקובץ הסקריפט שלך
# שלב 5: העלאת קבצי הוידאו שנוצרו כחפצים (artifacts)
- name: Upload videos as artifacts
uses: actions/upload-artifact@v3
with:
name: generated-videos
path: output/videos/*.mp4 # ודא שהנתיב תואם לתיקייה שבה נשמרים הסרטונים שנוצרים
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
TEMP_DIR = os.path.join(OUTPUT_DIR, 'temp')

# נתיבים לקבצים
JSON_FILE = os.path.join(DATA_DIR, 'words.json')
JSON_FILE = os.path.join(DATA_DIR, 'words_level_1-3.json')
FONT_PATH = os.path.join(FONTS_DIR, 'arial.ttf') # ודא שהגופן תומך בעברית
SUBTOPIC_FONT_PATH = os.path.join(FONTS_DIR, 'arialbd.ttf') # גופן מודגש עבור Subtopics
WORD_FONT_PATH = os.path.join(FONTS_DIR, 'arialbd.ttf') # גופן מודגש עבור מילים
Expand Down

0 comments on commit 5e2d9a5

Please sign in to comment.