Created
December 25, 2024 14:19
-
-
Save tarikmanoar/d5804e52ab203301c245ac2fcdaba46e to your computer and use it in GitHub Desktop.
Deploy Laravel Project using Github action to shared hosing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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