Skip to content

Commit

Permalink
Merge pull request #58 from holadmex/dev
Browse files Browse the repository at this point in the history
Changes added to deployment workflow for production
  • Loading branch information
Idimmusix authored Jul 21, 2024
2 parents 9323fa2 + 416e53f commit ba6d3e2
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build, Test, and Deploy for Prod Branch

on:
push:
branch:
branches:
- main

jobs:
Expand All @@ -13,25 +13,22 @@ jobs:
working-directory: /var/www/aihomework/prod

steps:
- name: Pull from github
id: pull
- name: Pull from GitHub
run: |
git pull origin prod
git fetch origin
git reset --hard origin/main
- name: install dependencies
- name: Install dependencies
run: yarn install

- name: buld the dist
- name: Build the dist
run: yarn build

- name: setup service file
- name: Setup service file
run: sudo cp server-script/aihomeworkprod.service /etc/systemd/system

- name: start the app
- name: Start the app
run: |
sudo systemctl daemon-reload
sudo systemctl restart aihomeworkprod
# test:
# -name: Run test
# run: yarn jest

0 comments on commit ba6d3e2

Please sign in to comment.