Skip to content

Update deploy.yml

Update deploy.yml #2

Workflow file for this run

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: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'
- name: 🔨 Build Project
run: |
npm install
npm run build
env:
CI: ""
- name: 📂 Upload to Cpanel
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTPS_SERVER }}
username: ${{ secrets.FTPS_USERNAME }}
password: ${{ secrets.FTPS_PASSWORD }}
protocol: ${{ secrets.FTPS_PROTOCOL }}
local-dir: ./build/