Skip to content

Instantly share code, notes, and snippets.

@sonu041
Last active January 26, 2024 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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@v3
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
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