Skip to content

update

update #122

Workflow file for this run

name: 🚀 Deploy Api Akevas to CPanel
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 🧾 Checkout Repository
uses: actions/checkout@v3
- name: ⚙️ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: 📦 Install Composer Dependencies
run: composer install --no-dev --prefer-dist --optimize-autoloader
- name: 📁 Prepare Laravel files
run: |
cp .env.example .env
php artisan key:generate
php artisan config:cache
php artisan route:cache
- name: 📤 Deploy via FTP
uses: SamKirkland/[email protected]
with:
server: ftp.viens-yamo.com
username: [email protected]
password: jMylEA6+(oHD
exclude:exclude: .git*
- .git*/**
- node_modules/**
- vendor/**/*
- .github/**
- package-lock.json
- .gitignore
- storage/**
- webpack.config.js
- README.md
- .babelrc
- package.json
- package-lock.json
- postcss.config.js
local-dir: ./
server-dir: /api/