-
Notifications
You must be signed in to change notification settings - Fork 71
39 lines (35 loc) · 926 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Bulid and Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Bulid-and-Deploy:
runs-on: ubuntu-latest
env:
NODE_VERSION: '16'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Build documentation site
run: npm run docs:build
- name: Deploy
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
ARGS: "-rltgoDzvO --delete"
SOURCE: "/docs/.vuepress/dist/"
REMOTE_HOST: "${{ secrets.SERVER_HOST }}"
REMOTE_USER: "${{ secrets.USER_NAME }}"
TARGET: "/usr/local/nginx/html/justlaws"