Skip to content

Merge pull request #26 from BETIS-Fasilkom-UI/development #50

Merge pull request #26 from BETIS-Fasilkom-UI/development

Merge pull request #26 from BETIS-Fasilkom-UI/development #50

Workflow file for this run

on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
name: Deploy to VM
runs-on: ubuntu-latest
steps:
- name: SSH and Pull Latest Changes
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
proxy_host: ${{ secrets.PROXY_HOST }}
proxy_username: ${{ secrets.PROXY_USERNAME }}
proxy_passphrase: ${{ secrets.PROXY_PASSPHRASE }}
proxy_key: ${{ secrets.PROXY_KEY }}
proxy_port: ${{ secrets.PROXY_PORT }}
script: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm use 22
cd ~/BETIS25-FE
git pull upstream main
pnpm install
pnpm run build > /dev/null 2>&1
pm2 restart betis25