refactor: consolidate video enrichment and hub generation into centralized V2 Publisher pipeline

This commit is contained in:
Nubenetes Bot
2026-05-22 16:59:44 +02:00
parent 4eeb1532e1
commit 55202d6b91
4 changed files with 9 additions and 59 deletions

View File

@@ -50,12 +50,18 @@ jobs:
run: |
pip install --no-cache-dir pydantic PyGithub httpx fake-useragent pytz python-dotenv pyyaml tenacity
- name: Run V2 Publisher (Render-Only)
- name: Run V2 Publisher (Enrichment & Rendering)
env:
PYTHONPATH: ${{ github.workspace }}
PYTHONUNBUFFERED: "1"
run: |
# 1. Enrich featured videos with real YouTube metadata (descriptions/titles)
python -u -m src.enrich_videos
# 2. Build the high-density Elite Video Hub page
python -u -m src.v2_video_portal
# 3. Standard V2 Elite generation (Render-Only)
python -u -m src.v2_optimizer --render-only
if [ -f v2_safety_report.md ]; then
cat v2_safety_report.md >> pr_description.md
else

View File

@@ -1,54 +0,0 @@
name: Nubenetes V2 Video Hub Builder
on:
push:
branches:
- develop
paths:
- 'src/v2_video_portal.py'
- 'data/inventory.yaml'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: v2-video-hub-${{ github.ref }}
cancel-in-progress: true
jobs:
build-video-hub:
runs-on: ubuntu-latest
steps:
- name: Repository Synchronization
uses: actions/checkout@v6
with:
ref: develop
- name: Python 3.11 Environment Provisioning
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Dependency Installation
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Execute Video Portal Generator
run: |
export PYTHONPATH=$PYTHONPATH:.
python src/v2_video_portal.py
- name: Commit and Push Changes
run: |
git config --global user.name "Nubenetes Bot"
git config --global user.email "bot@nubenetes.com"
git add v2-docs/videos.md
if git diff --staged --quiet; then
echo "No changes to commit."
else
git commit -m "docs: automated V2 video hub update [skip ci]"
git pull --rebase origin develop
git push origin develop
fi