Skip to content

Merge pull request #22 from hmif-itb/feat/calendar-api #38

Merge pull request #22 from hmif-itb/feat/calendar-api

Merge pull request #22 from hmif-itb/feat/calendar-api #38

name: deploy-staging
on:
push:
branches:
- develop
jobs:
deploy:
name: Deploy to staging
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd ~/app/hmif-app-staging
git pull --rebase
pnpm install
pm2 restart hmif-app-staging