Skip to content

Instantly share code, notes, and snippets.

@tarikmanoar
Created December 25, 2024 14:19
Show Gist options
  • Save tarikmanoar/d5804e52ab203301c245ac2fcdaba46e to your computer and use it in GitHub Desktop.
Save tarikmanoar/d5804e52ab203301c245ac2fcdaba46e to your computer and use it in GitHub Desktop.
Deploy Laravel Project using Github action to shared hosing
name: πŸš€ Deploy to cPanel
on:
push:
branches:
- main
jobs:
FTP-Deploy-Action:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: πŸ“‚ Sync folders and files to the server
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment