forked from kkevsekk1/kkevsekk1.github.io
-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (39 loc) · 1.06 KB
/
test-deploy.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
name: Test deployment
on:
pull_request:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: checkout v7-api
uses: actions/checkout@v4
with:
repository: kkevsekk1/AutoX
path: Autox-v7-api
sparse-checkout: |
autojs/src/js-api
ref: dev-v7
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: build-v7-api
run: |
pushd Autox-v7-api/autojs/src/js-api
npm install
npm run docs
popd
rm -rf docs/nodejs/docs
mv Autox-v7-api/autojs/src/js-api/docs/ docs/nodejs/
- name: Install dependencies
run: npm ci
- name: Test build website
run: npm run build