-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 961 Bytes
/
docs.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: documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
# Perform a Dry Run on the tag action and get the proposed version
build_documentation:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: pnpm/action-setup@v2
with:
version: 9
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- run: pnpm -r install
- name: Build documentation
run: npm run docs:build
- name: Deploy documentation
uses: up9cloud/action-rsync@v1
env:
HOST: ${{secrets.DEPLOY_DOCS_SSH_HOST}}
PORT: ${{secrets.DEPLOY_DOCS_SSH_PORT}}
USER: ${{secrets.DEPLOY_DOCS_SSH_USER}}
KEY: ${{secrets.DEPLOY_DOCS_SSH_KEY}}
SOURCE: ./docs/.vitepress/dist
TARGET: /public_html/
SSH_ARGS: -o StrictHostKeyChecking=no