CI: build Svelte avant le déploiement FTP

Installe Node 22 via NodeSource, npm ci + vite build.
Le résultat (assets/dist) est inclus dans le mirror FTP existant.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-03-05 17:28:37 +01:00
parent 0b563b4697
commit 7e1a92449d

View file

@ -17,6 +17,13 @@ jobs:
git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git . git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git .
ls -la ls -la
- name: Build Svelte app
run: |
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y -qq nodejs
npm ci
npm run build
- name: Deploy via FTP - name: Deploy via FTP
env: env:
USERNAME: ${{ secrets.USERNAME }} USERNAME: ${{ secrets.USERNAME }}