Skip to content

Commit

Permalink
Update FrontendPipeline.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
raga70 authored Apr 5, 2024
1 parent 250f44d commit e0662ea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/FrontendPipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit e0662ea

Please sign in to comment.