Skip to content

ci(github-actions): setiup new config #1

ci(github-actions): setiup new config

ci(github-actions): setiup new config #1

name: Deploy Production
on:
push:
branches:
- main
jobs:
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Build
uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm run build
- 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