Skip to content

Merge branch 'main' of github.com:ymg-team/kompetisiid-web-v2 into main #109

Merge branch 'main' of github.com:ymg-team/kompetisiid-web-v2 into main

Merge branch 'main' of github.com:ymg-team/kompetisiid-web-v2 into main #109

name: Deploy Production
on:
push:
branches:
- main
jobs:
build:
name: Build and Deploy via SSH
runs-on: ubuntu-latest
steps:
- name: SSH Comands to Server
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.PROD_SSH_HOST }}
user: ${{ secrets.PROD_SSH_USER }}
key: ${{ secrets.PROD_SSH_KEY}}
command: cd "/home/webdev/Web/kompetisi.id-v2" && git pull origin main && npm install && npm run build && pm2 restart ki-v2