Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
beuzathor committed Jan 5, 2025
1 parent d6e8c9f commit 14212c3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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

0 comments on commit 14212c3

Please sign in to comment.