Skip to content

commit

commit #1

Workflow file for this run

name: Deploy Astro to cPanel
on:
push:
branches: [ main ] # ou master, selon votre branche principale
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build Astro site
run: npm run build
- name: 📂 Sync files to cPanel
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.CPANEL_SERVER }}
username: ${{ secrets.CPANEL_USERNAME }}
password: ${{ secrets.CPANEL_PASSWORD }}
local-dir: ./dist/
server-dir: / # Ajustez selon votre configuration cPanel