Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abinashsth opened this issue Feb 22, 2025 · 0 comments

Comments

@abinashsth
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant