Skip to content

Commit

Permalink
fix: cd prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Angga Maulana authored and Angga Maulana committed Mar 19, 2023
1 parent f8ca17c commit 6db9acb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn install
- name: Build Next.js
run: yarn build
- name: Deploy to server
uses: appleboy/ssh-action@master
if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -20,6 +24,7 @@ jobs:
script: |
cd ~/multilevel/multilevel-frontend
git pull
yarn build:only
git merge master
yarn install
yarn build
pm2 reload mlm_prod

0 comments on commit 6db9acb

Please sign in to comment.