feat: push deploy pipeline - auth, sidebar layout, ML artifacts, LFS
Notable changes: - Add .gitattributes for LFS tracking on ML model artifacts - Add AuthGuard to all protected routes + login/register/logout flow - Add collapsible Sidebar replacing old Navbar - Redesign MainLayout with sidebar + mobile header - Add password show/hide toggle to AuthForm - Add Logout button to MobileNav - Update footer credit to ATLAS Project - Pijak x IBM SkillsBuild - Update deploy.yml: generate ONNX in CI (vs HuggingFace download) - Remove deprecated ML scripts (download/upload model .sh, .gitignore) - Remove stale MEMORY.md - Add ML model artifacts (TFLite, SavedModel, TFJS) - Update notebook.ipynb training pipeline Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Set image prefix
|
||||
run: echo "IMAGE_PREFIX=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"
|
||||
@@ -35,19 +37,19 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Download ONNX model from Hugging Face Hub
|
||||
- name: Set up Python for ONNX conversion
|
||||
if: matrix.service.name == 'ml'
|
||||
env:
|
||||
HF_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Generate ONNX model artifact
|
||||
if: matrix.service.name == 'ml'
|
||||
working-directory: Machine_Learning
|
||||
run: |
|
||||
mkdir -p Machine_Learning/model
|
||||
if [ -n "$HF_TOKEN" ]; then
|
||||
AUTH_HEADER="-H Authorization: Bearer $HF_TOKEN"
|
||||
fi
|
||||
curl -fL $AUTH_HEADER \
|
||||
"https://huggingface.co/MythEclipse2737/zeavis-edu-model/resolve/main/model/model.onnx" \
|
||||
-o "Machine_Learning/model/model.onnx"
|
||||
ls -lh Machine_Learning/model/model.onnx
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install 'tensorflow>=2.13.0' 'tf2onnx>=1.16.1' 'onnx>=1.16.0'
|
||||
python convert_onnx.py
|
||||
|
||||
- name: Log in to GHCR
|
||||
uses: docker/login-action@v3
|
||||
|
||||
Reference in New Issue
Block a user