build: github actions file #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | ||
push: | ||
branches: | ||
- main | ||
name: π Deploy website on | ||
jobs: | ||
web-deploy: | ||
name: π Deploy | ||
runs-on: unbuntu-lastest | ||
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/ |