Skip to content

Add PM2 deployment config #35

Add PM2 deployment config

Add PM2 deployment config #35

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
test:
uses: lowercasename/gathio/.github/workflows/test.yaml@pm2-ci
deploy:
runs-on: ubuntu-latest
needs: test
steps:
- name: Set up known_hosts file
run: |
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
ssh-keyscan -t rsa ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Install PM2
run: pnpm install -g pm2
- name: Deploy
run: pnpm run deploy