Skip to content

Update startappdev.sh #12

Update startappdev.sh

Update startappdev.sh #12

Workflow file for this run

name: Build, Test, and Deploy for Dev Branch
on:
push:
branch:
- dev
jobs:
build:
runs-on: self-hosted
defaults:
run:
working-directory: /var/www/aihomework/dev
steps:
- name: Pull from github
id: pull
run: |
git pull origin dev
- name: install dependencies
run: yarn install
- name: buld the dist
run: yarn build
- name: setup service file
run: sudo cp server-script/aihomeworkdev.service /etc/systemd/system
- name: start the app
run: |
sudo systemctl daemon-reload
sudo systemctl restart aihomeworkdev
# test:
# -name: Run test
# run: yarn jest
# deploy:
# runs-on: self-hosted
# needs: build
# if: github.ref == 'refs/heads/dev'
# steps:
# - name: Install dependencies
# run: yarn install