From 6f356902e3edcbbecc45f20620b525c3e73527b3 Mon Sep 17 00:00:00 2001 From: Christian Gil Date: Wed, 13 Sep 2023 20:53:17 -0600 Subject: [PATCH] update: Implement PM2 deployment on CD --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7bf8ea5..397ad97 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -38,3 +38,8 @@ jobs: pnpm install pnpm build working-directory: ./client + - name: Restart PM2 + run: | + touch pm2.config.js + echo "${{ secrets.PM2_CONFIG }}" | base64 --decode > pm2.config.js + pm2 restart pm2.config.js