Skip to content

Commit

Permalink
加入api文档的构建
Browse files Browse the repository at this point in the history
  • Loading branch information
aiselp committed Sep 1, 2024
1 parent 9d11ad7 commit 0906d9d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,26 @@ jobs:
- 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
mv Autox-v7-api/autojs/src/js-api/docs/ docs/v2/docs/nodejs/
- name: Install dependencies
run: npm ci
- name: Build website
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,26 @@ jobs:
- 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
mv Autox-v7-api/autojs/src/js-api/docs/ docs/v2/docs/nodejs/
- name: Install dependencies
run: npm ci
- name: Test build website
Expand Down

0 comments on commit 0906d9d

Please sign in to comment.