Skip to content

auto login moved to /api #47

auto login moved to /api

auto login moved to /api #47

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Publish to PROD server.
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SSH Remote Commands
uses: appleboy/[email protected]
with:
host: ${{secrets.VPS_HOST}}
port: 22
username: ${{secrets.VPS_USERNAME}}
password: ${{secrets.VPS_PASSWORD}}
script: |
cd /var/www/RonanPlugins/frontend
git pull
npm install
npm run build
rm -rf ./build
cp -r ./dist ./build
systemctl restart RonanPlugins-FRONTEND.service