Skip to content

Update deploy.yml

Update deploy.yml #9

Workflow file for this run

on:
push:
branches:
- main
name: πŸš€ Deploy website on
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get lastest code
uses: actions/checkout@v3
- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: "20"
- name: πŸ”¨ Build FrontEnd
run: |
cd client
npm install
npm run build
- name: πŸ“ Sync File
uses: AkekoChan/flami-app
with:
server: ${{ secrets.GIT_CPANEL_SERVER }}
username: ${{ secrets.GIT_CPANEL_USER }}
password: ${{ secrets.GIT_CPANEL_PWD }}
protocol: ${{ secrets.GIT_CPANEL_PROTOCOL }}
local-dir: ./build/