-
-
Notifications
You must be signed in to change notification settings - Fork 139
48 lines (41 loc) · 1.16 KB
/
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
40
41
42
43
44
45
46
47
48
name: Docs
on:
push:
branches:
- 'main'
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 16.x
- name: Get npm cache directory
id: npm-cache
run: |
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Setup npm cache
uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci || npm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
- name: Build API-Docs
run: npm run docs:build
continue-on-error: true
- name: Deploy API-Docs
uses: peaceiris/actions-gh-pages@v4
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs