Skip to content

Light POV Camera

Light POV Camera #13

Workflow file for this run

name: LensLab CI/CD to VM
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-size: 20
cache: 'npm'
- name: Install Dependencies & Build
run: |
npm ci
npm run build
- name: Deploy to VM via SSH/SCP
uses: appleboy/scp-action@master
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "dist/*"
target: "/var/www/ForClient/LensLab"
strip_components: 1
- name: Restart Nginx
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: sudo systemctl restart nginx