mirror of
https://github.com/ArthurDanjou/arthurdanjou.fr.git
synced 2026-01-14 20:19:27 +01:00
update node.js.yml x3
This commit is contained in:
19
.github/workflows/node.js.yml
vendored
19
.github/workflows/node.js.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user