my-portfolio/.github/workflows/ftpDeploy.yml
Rohit Pai 1b39c58f76
All checks were successful
🚀 Deploy website on push / 🎉 Deploy (push) Successful in 25s
Updated ftp worflow
Signed-off-by: Rohit Pai <rodude123@cloud.rohitpai.co.uk>
2023-10-20 10:23:31 +01:00

29 lines
666 B
YAML

on: push
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: 'latest'
- 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/