Skip to content

Merge pull request #1 from rhidayatmajid/dev #2

Merge pull request #1 from rhidayatmajid/dev

Merge pull request #1 from rhidayatmajid/dev #2

Workflow file for this run

name: Publish Website to CPanel
on:
push:
branches:
- main
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.1.0
with:
fetch-depth: 2
- name: Build assets
run: npm install && npm run build
- name: Install PHP and Composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.2' # Adjust to match the PHP version used by your Laravel project
tools: 'composer'
- name: Install PHP dependencies
run: composer install --no-dev --optimize-autoloader
- name: FTP-Deploy-Action
uses: SamKirkland/FTP-Deploy-Action@4.3.3
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}