1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(feat): added auto ftp deploy on server from github

This commit is contained in:
2023-12-02 22:25:48 +05:30
parent 56b64b32ac
commit 5884e58b07

20
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
on:
push:
branches:
- main
name: 🚀 Deploy website on server
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_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./htdocs/