Skip to content

setup deployment for cPanel #1

setup deployment for cPanel

setup deployment for cPanel #1

Workflow file for this run

name: Deploy to FTP
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20.8.1
- name: Install dependencies and build Next.js app
run: |
cd client
npm install
npm run build
- name: Deploy via FTP
run: |
lftp -e "open -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} ${{ secrets.FTP_HOST }}; set ssl:verify-certificate no; mirror -R -e -x .git/ -x .github/ -x .next/ -x node_modules/

Check failure on line 30 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
. /public_html/; bye"