Skip to content

I have Tried Various way but could not upload the code some one please help #494

Open
@abinashsth

Description

@abinashsth

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@v4
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@v4.3.5

with:
server: ${{ secrets.SERVER }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
exclude: ".git*, node_modules/, vendor/, *.env, storage/"

this is my error and my host is cpanel

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions