From e0662ea787ecd32759da3449119dd1ee30e3f552 Mon Sep 17 00:00:00 2001 From: Radoslav Radev Date: Fri, 5 Apr 2024 15:29:03 +0200 Subject: [PATCH] Update FrontendPipeline.yaml --- .github/workflows/FrontendPipeline.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/FrontendPipeline.yaml b/.github/workflows/FrontendPipeline.yaml index e2f299c..c1afd3e 100644 --- a/.github/workflows/FrontendPipeline.yaml +++ b/.github/workflows/FrontendPipeline.yaml @@ -20,14 +20,17 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '14' # Replace with your project's Node.js version + node-version: '14' # Adjust this to match your project's Node.js version - name: Install dependencies run: npm install working-directory: ./Frontend/openvidstreamer-fe + - name: Install Vite globally + run: npm install -g vite + - name: Build project using Vite - run: npx vite build + run: vite build working-directory: ./Frontend/openvidstreamer-fe - name: Deploy over SSH @@ -40,7 +43,3 @@ jobs: source: "./Frontend/openvidstreamer-fe/dist/*" target: "/var/www/fe" rm: true # Removes all files in the target directory before copying - - - name: Clean up after deploy - run: rm -rf ./Frontend/openvidstreamer-fe/dist - if: always() # Ensures cleanup happens even if previous steps fail