my-portfolio/.github/workflows/ftpDeploy.yml

28 lines
624 B
YAML

on: push
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: 🔨Run Gulp
run: |
npm install
npm start
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@4.1.0
with:
server: ftp.rohitpai.tech
username: u987021215.rodude123
password: ${{ secrets.ftp_password }}
local-dir: ./dist/