Skip to content

Update deploy.yml

Update deploy.yml #10

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 Project
run: |
cd client
npm install
npm run build
- name: πŸ“‚ Sync files
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/