-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (32 loc) · 1.01 KB
/
deploy.docs.yaml
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
name: Deploy
on:
push:
branches: [master, staging]
permissions:
contents: read # for checkout
jobs:
build:
runs-on: ubuntu-latest
# This is due to change for different envs but
# as of today we only have one deployment endpoint (demo)
if: github.ref == 'refs/heads/staging'
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install npm dependencies
run: npm run docs:manual:build
- name: Run build task
run: npm run build --if-present
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: '-rlgoDzvc -i --delete'
SOURCE: './docs/manual/.vitepress/dist/'
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: '/dist/, /node_modules/'