Skip to content

change: Improved BrowserResults #91

change: Improved BrowserResults

change: Improved BrowserResults #91

Workflow file for this run

name: Push build into production
on:
push:
branches: ['main']
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
VITE_API_PATH: ${{ secrets.VITE_API_PATH }}
VITE_CLIENT_ID: ${{ secrets.VITE_CLIENT_ID }}
- name: Upload dist via SFTP
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
server: ${{ secrets.SFTP_HOST }}
port: ${{ secrets.SFTP_PORT }} # default 22
username: ${{ secrets.SFTP_USER }}
password: ${{ secrets.SFTP_PASSWORD }} # remove if using SSH key
# ssh_private_key: ${{ secrets.SFTP_KEY }} # uncomment for key-based auth
local_path: './dist/*'
remote_path: './files/modelab/web/'
sftp_only: true