update node.js.yml x3

This commit is contained in:
2020-06-02 12:33:36 +02:00
parent 7bfcd9b9cf
commit b9cf255dd7

View File

@@ -3,8 +3,17 @@ name: Deploy, Install, Build & Run
on: [push]
jobs:
build:
deploy:
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- name: Delete old Dir & create a new one
run: rm -rf /home/arthur/website && mkdir /home/arthur/website
build:
needs: deploy
runs-on: self-hosted
steps:
@@ -22,5 +31,13 @@ jobs:
- name: Build
run: yarn build-all
run:
needs: build
runs-on: self-hosted
steps:
- name: Close old daemon
run: pm2 delete next
- name: Run
run: pm2 start yarn --name "next" -- start