Skip to content

edit of main.yml

edit of main.yml #33

Workflow file for this run

name: Deploy to SFTP
on:
push:
branches:
- master # Change this to your target branch zkouska
jobs:
deploy-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Deploy Backend via SFTP
env:
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
run: |
lftp -e "set ssl:verify-certificate no; open -u $FTP_USERNAME,$FTP_PASSWORD 287586.w86.wedos.net && mirror -R Fitmo_backend /www/subdom/beTest"
deploy-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install pnpm
run: npm install -g pnpm
- name: Navigate to frontend directory and install dependencies
run: |
cd Fitmo_frontend
pnpm install
- name: Build Frontend
run: |
cd Fitmo_frontend
pnpm run build # Adjust this based on your actual build command
- name: Deploy Frontend via SFTP
env:
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
run: |
cd Fitmo_frontend/dist # Navigate to the build output directory
lftp -e "set ssl:verify-certificate no; open -u $FTP_USERNAME,$FTP_PASSWORD 287586.w86.wedos.net && mirror -R . /www/subdom/devTest"