Revert "Feat/19 Implement Backend for Notification Settings" #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Test, and Deploy for Prod Branch | |
on: | |
push: | |
branch: | |
- main | |
jobs: | |
build: | |
runs-on: self-hosted | |
defaults: | |
run: | |
working-directory: /var/www/aihomework/prod | |
steps: | |
- name: Pull from github | |
id: pull | |
run: | | |
git pull origin prod | |
- name: install dependencies | |
run: yarn install | |
- name: buld the dist | |
run: yarn build | |
- name: setup service file | |
run: sudo cp server-script/aihomeworkprod.service /etc/systemd/system | |
- name: start the app | |
run: | | |
sudo systemctl daemon-reload | |
sudo systemctl restart aihomeworkprod | |
# test: | |
# -name: Run test | |
# run: yarn jest | |