- cache/content.fr.json et content.en.json : données initiales calées sur la prod (FAQ complète 12 questions EN, socials EN ajoutés) - CI : suppression de -x cache/ pour que les fichiers seed soient déployés ; PHP les rafraîchira depuis l'API Kirby à partir du 1er chargement Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
909 B
YAML
32 lines
909 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy to Production
|
|
runs-on: docker
|
|
container:
|
|
image: forgejo-ci-php:latest
|
|
steps:
|
|
- name: Checkout code
|
|
run: |
|
|
git clone --depth 1 --branch main https://oauth2:${{ github.token }}@forge.studio-variable.com/${{ github.repository }}.git .
|
|
|
|
- name: Deploy via FTP
|
|
env:
|
|
USERNAME: ${{ secrets.USERNAME }}
|
|
PASSWORD: ${{ secrets.PASSWORD }}
|
|
HOST: ${{ secrets.HOST }}
|
|
run: |
|
|
apt-get update -qq && apt-get install -y -qq lftp
|
|
cat > /tmp/lftp-script.txt <<SCRIPT
|
|
set ftp:ssl-allow no
|
|
open -u $USERNAME,$PASSWORD $HOST
|
|
mirror --reverse --verbose --ignore-time --parallel=10 -x .git/ -x .forgejo/ -x .claude/ -x backup/ . .
|
|
quit
|
|
SCRIPT
|
|
lftp -f /tmp/lftp-script.txt
|