Skip to content

fix of main.yml

fix of main.yml #21

Workflow file for this run

name: Deploy to FTP
on:
push:
branches:
- master # Change this to your main branch name
jobs:
deploy_frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies and build Vue.js frontend
run: |
cd Fitmo_frontend
npm npm i -g pnpm
npm run build
- name: Deploy Vue.js frontend to FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: Fitmo_frontend/dist
remote-dir: www/subdoms/devTest
deploy_backend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
- name: Install Composer dependencies
run: |
cd Fitmo_backend
composer install --no-dev --optimize-autoloader --ignore-platform-req=ext-fileinfo
- name: Deploy Laravel backend to FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: Fitmo_backend
exclude: ".env,.git"
remote-dir: www/subdoms/beTest