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:
parent
0b563b4697
commit
7e1a92449d
1 changed files with 7 additions and 0 deletions
|
|
@ -17,6 +17,13 @@ jobs:
|
|||
git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git .
|
||||
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
|
||||
env:
|
||||
USERNAME: ${{ secrets.USERNAME }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue