mirror of
https://github.com/ArthurDanjou/arthurdanjou.fr.git
synced 2026-01-14 20:19:27 +01:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Deploy, Install, Build & Run
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Deploy
|
|
uses: appleboy/scp-action@master
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SSH_USERNAME }}
|
|
port: ${{ secrets.SSH_PORT }}
|
|
key: ${{ secrets.SSH_KEY }}
|
|
source: "."
|
|
target: "/home/arthur/website"
|
|
|
|
- name: Install
|
|
uses: appleboy/ssh-action@master
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SS_USERNAME }}
|
|
port: ${{ secrets.SSH_PORT }}
|
|
key: ${{ secrets.SSH_KEY }}
|
|
script: yarn install
|
|
|
|
- name: Build
|
|
uses: appleboy/ssh-action@master
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SS_USERNAME }}
|
|
port: ${{ secrets.SSH_PORT }}
|
|
key: ${{ secrets.SSH_KEY }}
|
|
script: yarn build-all
|
|
|
|
- name: Run
|
|
uses: appleboy/ssh-action@master
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SS_USERNAME }}
|
|
port: ${{ secrets.SSH_PORT }}
|
|
key: ${{ secrets.SSH_KEY }}
|
|
script: yarn start |