Skip to content

Commit

Permalink
feat: 🔨 update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
MuttakinHasib committed Dec 28, 2023
1 parent 9952042 commit d99361c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/aafiyah.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ name: GitHub CI/CD (Auto Deploy)

on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches: ['main']
types: ['closed']
branches: ["main"]
types: ["closed"]

jobs:
build:
Expand All @@ -25,8 +25,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: "Create env file"
run: cd apps/api

- name: 'Create env file'
- name: "Create env file"
run: |
echo "${{ secrets.ENV_FILE }}" > .env
Expand All @@ -35,7 +37,7 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn build:api

- name: 'Restart The Server'
- name: "Restart The Server"
run: pm2 restart server.aafiyah.com

- name: Send deployment success notification
Expand Down

1 comment on commit d99361c

@vercel
Copy link

@vercel vercel bot commented on d99361c Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.