Skip to content

Instantly share code, notes, and snippets.

@jonathanfelicity
Created May 9, 2023 12:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanfelicity/19b0f7ab5fe5b938baf06c57a959310e to your computer and use it in GitHub Desktop.
Save jonathanfelicity/19b0f7ab5fe5b938baf06c57a959310e to your computer and use it in GitHub Desktop.
name: Deploy to cPanel via FTP
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 'latest'
# - name: Install dependencies
# run: composer install --no-dev
# - name: Generate key
# run: php artisan key:generate
- name: Deploy to cPanel
uses: SamKirkland/FTP-Deploy-Action@4.2.0
with:
server: ftp.legitproperties.ng
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftp
port: 21
local-dir: ./
server-dir: ./
exclude: .env*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment