Skip to content

chore: rename actions yml file and prepare pm2 run more closely #1

chore: rename actions yml file and prepare pm2 run more closely

chore: rename actions yml file and prepare pm2 run more closely #1

Workflow file for this run

name: Epitome CI/CD
on:
push:
branches:
- master
- test/gh-actions
jobs:
deploy:
name: Deploy to Raspberry Pi 4 (self-hosted) 🦖
runs-on: self-hosted
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install npm dependencies with yarn
run: yarn
- name: Build epitome (/dist)
run: yarn run build
- name: Stop previous epitome pm2 process
run: yarn run stop-and-delete
- name: Prepare application directory
run: rm -rf ~/apps/epitome && mkdir ~/apps/epitome
- name: Move build contents to application directory
run: mv dist/* ~/apps/epitome
- name: Start new epitome pm2 process
run: cd ~/apps/epitome && yarn run start-and-register