fix(ci): inline build+deploy, remove missing script reference
The workflow was calling deploy-ovh-ftp-target.sh which doesn't exist on this branch. Replace with inline astro build + lftp mirror. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,19 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y lftp
|
sudo apt-get install -y lftp
|
||||||
|
|
||||||
- name: Deploy target
|
- name: Build static site
|
||||||
env:
|
env:
|
||||||
DEPLOY_TARGET_SKIP_BUILD: "0"
|
PUBLIC_SITE_URL: https://www.lelectronrare.fr/
|
||||||
run: bash scripts/deploy-ovh-ftp-target.sh "${{ inputs.target }}"
|
run: npm run build:astro
|
||||||
|
|
||||||
|
- name: Deploy to OVH
|
||||||
|
run: |
|
||||||
|
lftp -u "$FTP_USER","$FTP_PASS" "ftp://$FTP_HOST" <<EOF
|
||||||
|
set ssl:verify-certificate no
|
||||||
|
set ftp:list-options -a
|
||||||
|
set cmd:fail-exit true
|
||||||
|
set net:max-retries 3
|
||||||
|
set net:timeout 30
|
||||||
|
mirror --reverse --delete --verbose dist/ ${FTP_REMOTE_DIR:-/www}
|
||||||
|
bye
|
||||||
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user