Skip to content

Update deploy.yml

Update deploy.yml #12

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 20
uses: actions/setup-node@v2
with:
node-version: '20'
- name: πŸ”¨ Build Frontend
run: |
cd client
npm install
npm run build
- name: πŸ”¨ Build Backend
run: |
cd server
npm install
npm run build
- name: πŸ“‚ Sync files
uses: AkekoChan/flami-app@v1
with:
server: ${{ secrets.GIT_CPANEL_SERVER }}
username: ${{ secrets.GIT_CPANEL_USER }}
password: ${{ secrets.GIT_CPANEL_PWD }}
protocol: ${{ secrets.GIT_CPANEL_PROTOCOL }}
local-dir: ./build/