mirror of
https://github.com/ArthurDanjou/arthurdanjou.fr.git
synced 2026-01-14 20:19:27 +01:00
26 lines
486 B
YAML
26 lines
486 B
YAML
name: Deploy, Install, Build & Run
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
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
|
|
|
|
- name: Deploy
|
|
run: cp -r . /home/arthur/website
|
|
|
|
- name: Install
|
|
run: yarn install
|
|
|
|
- name: Build
|
|
run: yarn build-all
|
|
|
|
- name: Run
|
|
run: pm2 start yarn --name "next" -- start |