Skip to content

Instantly share code, notes, and snippets.

@sonu041
Last active June 7, 2025 17:33
Show Gist options
  • Save sonu041/36e9ac8084d21fe1ce327add7ef141e4 to your computer and use it in GitHub Desktop.
Save sonu041/36e9ac8084d21fe1ce327add7ef141e4 to your computer and use it in GitHub Desktop.
on:
push:
branches:
- main
name: πŸš€ Deploy website on push
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: πŸ“‚ Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.ftp_hostname }}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
server-dir: /home/your_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment