Skip to content

Workflow file for this run

name: Deploy Laravel Project to cPanel via FTP
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Install Composer dependencies
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader --no-dev
- name: Build assets
run: npm install && npm run build
- name: Deploy via FTP
uses: SamKirkland/FTP-Deploy-Action@4.2.0
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
exclude: |
**/node_modules/**
**/vendor/**