my-portfolio/.github/workflows/ftpDeploy.yml
Rohit Pai 4c871c20a0
All checks were successful
🚀 Deploy website on push / 🎉 Deploy (push) Successful in 16s
chnaged to run all branches
2023-10-24 16:08:02 +01:00

32 lines
689 B
YAML

on:
push:
branches:
- '*'
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-22.04
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: Use Node.js Latest
uses: actions/setup-node@v3
with:
node-version: 20
- name: 🔨Run Gulp
run: |
export github="true"
npm install
npm start
- name: 📂 Sync files to server
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ftp.rohitpai.co.uk
username: u987021215.rodude123
password: ${{ secrets.FTPPASSWORD }}
local-dir: ./dist/